head	1.4;
access;
symbols
	netbsd-11-0-RC4:1.4
	netbsd-11-0-RC3:1.4
	netbsd-11-0-RC2:1.4
	netbsd-11-0-RC1:1.4
	perseant-exfatfs-base-20250801:1.4
	netbsd-11:1.4.0.92
	netbsd-11-base:1.4
	netbsd-10-1-RELEASE:1.4
	perseant-exfatfs-base-20240630:1.4
	perseant-exfatfs:1.4.0.90
	perseant-exfatfs-base:1.4
	netbsd-8-3-RELEASE:1.4
	netbsd-9-4-RELEASE:1.4
	netbsd-10-0-RELEASE:1.4
	netbsd-10-0-RC6:1.4
	netbsd-10-0-RC5:1.4
	netbsd-10-0-RC4:1.4
	netbsd-10-0-RC3:1.4
	netbsd-10-0-RC2:1.4
	thorpej-ifq:1.4.0.88
	thorpej-ifq-base:1.4
	thorpej-altq-separation:1.4.0.86
	thorpej-altq-separation-base:1.4
	netbsd-10-0-RC1:1.4
	netbsd-10:1.4.0.84
	netbsd-10-base:1.4
	bouyer-sunxi-drm:1.4.0.82
	bouyer-sunxi-drm-base:1.4
	netbsd-9-3-RELEASE:1.4
	thorpej-i2c-spi-conf2:1.4.0.80
	thorpej-i2c-spi-conf2-base:1.4
	thorpej-futex2:1.4.0.78
	thorpej-futex2-base:1.4
	thorpej-cfargs2:1.4.0.76
	thorpej-cfargs2-base:1.4
	cjep_sun2x-base1:1.4
	cjep_sun2x:1.4.0.74
	cjep_sun2x-base:1.4
	cjep_staticlib_x-base1:1.4
	netbsd-9-2-RELEASE:1.4
	cjep_staticlib_x:1.4.0.72
	cjep_staticlib_x-base:1.4
	thorpej-i2c-spi-conf:1.4.0.70
	thorpej-i2c-spi-conf-base:1.4
	thorpej-cfargs:1.4.0.68
	thorpej-cfargs-base:1.4
	thorpej-futex:1.4.0.66
	thorpej-futex-base:1.4
	netbsd-9-1-RELEASE:1.4
	bouyer-xenpvh-base2:1.4
	phil-wifi-20200421:1.4
	bouyer-xenpvh-base1:1.4
	phil-wifi-20200411:1.4
	bouyer-xenpvh:1.4.0.64
	bouyer-xenpvh-base:1.4
	is-mlppp:1.4.0.62
	is-mlppp-base:1.4
	phil-wifi-20200406:1.4
	netbsd-8-2-RELEASE:1.4
	ad-namecache-base3:1.4
	netbsd-9-0-RELEASE:1.4
	netbsd-9-0-RC2:1.4
	ad-namecache-base2:1.4
	ad-namecache-base1:1.4
	ad-namecache:1.4.0.60
	ad-namecache-base:1.4
	netbsd-9-0-RC1:1.4
	phil-wifi-20191119:1.4
	netbsd-9:1.4.0.58
	netbsd-9-base:1.4
	phil-wifi-20190609:1.4
	netbsd-8-1-RELEASE:1.4
	netbsd-8-1-RC1:1.4
	isaki-audio2:1.4.0.56
	isaki-audio2-base:1.4
	pgoyette-compat-merge-20190127:1.4
	pgoyette-compat-20190127:1.4
	pgoyette-compat-20190118:1.4
	pgoyette-compat-1226:1.4
	pgoyette-compat-1126:1.4
	pgoyette-compat-1020:1.4
	pgoyette-compat-0930:1.4
	pgoyette-compat-0906:1.4
	netbsd-7-2-RELEASE:1.4
	pgoyette-compat-0728:1.4
	netbsd-8-0-RELEASE:1.4
	phil-wifi:1.4.0.54
	phil-wifi-base:1.4
	pgoyette-compat-0625:1.4
	netbsd-8-0-RC2:1.4
	pgoyette-compat-0521:1.4
	pgoyette-compat-0502:1.4
	pgoyette-compat-0422:1.4
	netbsd-8-0-RC1:1.4
	pgoyette-compat-0415:1.4
	pgoyette-compat-0407:1.4
	pgoyette-compat-0330:1.4
	pgoyette-compat-0322:1.4
	pgoyette-compat-0315:1.4
	netbsd-7-1-2-RELEASE:1.4
	pgoyette-compat:1.4.0.52
	pgoyette-compat-base:1.4
	netbsd-7-1-1-RELEASE:1.4
	tls-maxphys-base-20171202:1.4
	matt-nb8-mediatek:1.4.0.50
	matt-nb8-mediatek-base:1.4
	nick-nhusb-base-20170825:1.4
	perseant-stdc-iso10646:1.4.0.48
	perseant-stdc-iso10646-base:1.4
	netbsd-8:1.4.0.46
	netbsd-8-base:1.4
	prg-localcount2-base3:1.4
	prg-localcount2-base2:1.4
	prg-localcount2-base1:1.4
	prg-localcount2:1.4.0.44
	prg-localcount2-base:1.4
	pgoyette-localcount-20170426:1.4
	bouyer-socketcan-base1:1.4
	jdolecek-ncq:1.4.0.42
	jdolecek-ncq-base:1.4
	pgoyette-localcount-20170320:1.4
	netbsd-7-1:1.4.0.40
	netbsd-7-1-RELEASE:1.4
	netbsd-7-1-RC2:1.4
	nick-nhusb-base-20170204:1.4
	netbsd-7-nhusb-base-20170116:1.4
	bouyer-socketcan:1.4.0.38
	bouyer-socketcan-base:1.4
	pgoyette-localcount-20170107:1.4
	netbsd-7-1-RC1:1.4
	nick-nhusb-base-20161204:1.4
	pgoyette-localcount-20161104:1.4
	netbsd-7-0-2-RELEASE:1.4
	nick-nhusb-base-20161004:1.4
	localcount-20160914:1.4
	netbsd-7-nhusb:1.4.0.36
	netbsd-7-nhusb-base:1.4
	pgoyette-localcount-20160806:1.4
	pgoyette-localcount-20160726:1.4
	pgoyette-localcount:1.4.0.34
	pgoyette-localcount-base:1.4
	nick-nhusb-base-20160907:1.4
	nick-nhusb-base-20160529:1.4
	netbsd-7-0-1-RELEASE:1.4
	nick-nhusb-base-20160422:1.4
	nick-nhusb-base-20160319:1.4
	nick-nhusb-base-20151226:1.4
	netbsd-7-0:1.4.0.32
	netbsd-7-0-RELEASE:1.4
	nick-nhusb-base-20150921:1.4
	netbsd-7-0-RC3:1.4
	netbsd-7-0-RC2:1.4
	netbsd-7-0-RC1:1.4
	nick-nhusb-base-20150606:1.4
	nick-nhusb-base-20150406:1.4
	nick-nhusb:1.4.0.30
	nick-nhusb-base:1.4
	netbsd-5-2-3-RELEASE:1.3
	netbsd-5-1-5-RELEASE:1.3
	netbsd-6-0-6-RELEASE:1.4
	netbsd-6-1-5-RELEASE:1.4
	netbsd-7:1.4.0.28
	netbsd-7-base:1.4
	yamt-pagecache-base9:1.4
	yamt-pagecache-tag8:1.4
	netbsd-6-1-4-RELEASE:1.4
	netbsd-6-0-5-RELEASE:1.4
	tls-earlyentropy:1.4.0.26
	tls-earlyentropy-base:1.4
	riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.4
	riastradh-drm2-base3:1.4
	netbsd-6-1-3-RELEASE:1.4
	netbsd-6-0-4-RELEASE:1.4
	netbsd-5-2-2-RELEASE:1.3
	netbsd-5-1-4-RELEASE:1.3
	netbsd-6-1-2-RELEASE:1.4
	netbsd-6-0-3-RELEASE:1.4
	netbsd-5-2-1-RELEASE:1.3
	netbsd-5-1-3-RELEASE:1.3
	rmind-smpnet-nbase:1.4
	netbsd-6-1-1-RELEASE:1.4
	riastradh-drm2-base2:1.4
	riastradh-drm2-base1:1.4
	riastradh-drm2:1.4.0.24
	riastradh-drm2-base:1.4
	rmind-smpnet:1.4.0.16
	rmind-smpnet-base:1.4
	netbsd-6-1:1.4.0.22
	netbsd-6-0-2-RELEASE:1.4
	netbsd-6-1-RELEASE:1.4
	khorben-n900:1.4.0.20
	netbsd-6-1-RC4:1.4
	netbsd-6-1-RC3:1.4
	agc-symver:1.4.0.18
	agc-symver-base:1.4
	netbsd-6-1-RC2:1.4
	netbsd-6-1-RC1:1.4
	yamt-pagecache-base8:1.4
	netbsd-5-2:1.3.0.34
	netbsd-6-0-1-RELEASE:1.4
	yamt-pagecache-base7:1.4
	netbsd-5-2-RELEASE:1.3
	netbsd-5-2-RC1:1.3
	matt-nb6-plus-nbase:1.4
	yamt-pagecache-base6:1.4
	netbsd-6-0:1.4.0.14
	netbsd-6-0-RELEASE:1.4
	netbsd-6-0-RC2:1.4
	tls-maxphys:1.4.0.12
	tls-maxphys-base:1.4
	matt-nb6-plus:1.4.0.10
	matt-nb6-plus-base:1.4
	netbsd-6-0-RC1:1.4
	jmcneill-usbmp-base10:1.4
	yamt-pagecache-base5:1.4
	jmcneill-usbmp-base9:1.4
	yamt-pagecache-base4:1.4
	jmcneill-usbmp-base8:1.4
	jmcneill-usbmp-base7:1.4
	jmcneill-usbmp-base6:1.4
	jmcneill-usbmp-base5:1.4
	jmcneill-usbmp-base4:1.4
	jmcneill-usbmp-base3:1.4
	jmcneill-usbmp-pre-base2:1.4
	jmcneill-usbmp-base2:1.4
	netbsd-6:1.4.0.8
	netbsd-6-base:1.4
	netbsd-5-1-2-RELEASE:1.3
	netbsd-5-1-1-RELEASE:1.3
	jmcneill-usbmp:1.4.0.6
	jmcneill-usbmp-base:1.4
	jmcneill-audiomp3:1.4.0.4
	jmcneill-audiomp3-base:1.4
	yamt-pagecache-base3:1.4
	yamt-pagecache-base2:1.4
	yamt-pagecache:1.4.0.2
	yamt-pagecache-base:1.4
	rmind-uvmplock-nbase:1.3
	cherry-xenmp:1.3.0.32
	cherry-xenmp-base:1.3
	jym-xensuspend-nbase:1.3
	uebayasi-xip-base7:1.3
	bouyer-quota2-nbase:1.3
	bouyer-quota2:1.3.0.30
	bouyer-quota2-base:1.3
	jruoho-x86intr:1.3.0.28
	jruoho-x86intr-base:1.3
	matt-mips64-premerge-20101231:1.3
	matt-nb5-mips64-premerge-20101231:1.3
	matt-nb5-pq3:1.3.0.26
	matt-nb5-pq3-base:1.3
	netbsd-5-1:1.3.0.24
	uebayasi-xip-base6:1.3
	uebayasi-xip-base5:1.3
	netbsd-5-1-RELEASE:1.3
	uebayasi-xip-base4:1.3
	uebayasi-xip-base3:1.3
	yamt-nfs-mp-base11:1.3
	netbsd-5-1-RC4:1.3
	matt-nb5-mips64-k15:1.3
	uebayasi-xip-base2:1.3
	yamt-nfs-mp-base10:1.3
	netbsd-5-1-RC3:1.3
	netbsd-5-1-RC2:1.3
	uebayasi-xip-base1:1.3
	netbsd-5-1-RC1:1.3
	rmind-uvmplock:1.3.0.22
	rmind-uvmplock-base:1.3
	yamt-nfs-mp-base9:1.3
	uebayasi-xip:1.3.0.20
	uebayasi-xip-base:1.3
	netbsd-5-0-2-RELEASE:1.3
	matt-nb5-mips64-premerge-20091211:1.3
	matt-premerge-20091211:1.3
	yamt-nfs-mp-base8:1.3
	matt-nb5-mips64-u2-k2-k4-k7-k8-k9:1.3
	matt-nb4-mips64-k7-u2a-k9b:1.3
	matt-nb5-mips64-u1-k1-k5:1.3
	yamt-nfs-mp-base7:1.3
	matt-nb5-mips64:1.3.0.18
	netbsd-5-0-1-RELEASE:1.3
	jymxensuspend-base:1.3
	yamt-nfs-mp-base6:1.3
	yamt-nfs-mp-base5:1.3
	yamt-nfs-mp-base4:1.3
	yamt-nfs-mp-base3:1.3
	nick-hppapmap-base4:1.3
	nick-hppapmap-base3:1.3
	netbsd-5-0:1.3.0.16
	netbsd-5-0-RELEASE:1.3
	netbsd-5-0-RC4:1.3
	netbsd-5-0-RC3:1.3
	nick-hppapmap-base2:1.3
	netbsd-5-0-RC2:1.3
	jym-xensuspend:1.3.0.14
	jym-xensuspend-base:1.3
	netbsd-5-0-RC1:1.3
	haad-dm-base2:1.3
	haad-nbase2:1.3
	ad-audiomp2:1.3.0.12
	ad-audiomp2-base:1.3
	netbsd-5:1.3.0.10
	netbsd-5-base:1.3
	nick-hppapmap:1.3.0.8
	nick-hppapmap-base:1.3
	matt-mips64-base2:1.3
	haad-dm-base1:1.3
	wrstuden-revivesa-base-4:1.3
	netbsd-4-0-1-RELEASE:1.2
	wrstuden-revivesa-base-3:1.3
	wrstuden-revivesa-base-2:1.3
	wrstuden-fixsa-newbase:1.2
	nick-csl-alignment-base5:1.2
	haad-dm:1.3.0.6
	haad-dm-base:1.3
	wrstuden-revivesa-base-1:1.3
	simonb-wapbl-nbase:1.3
	yamt-pf42-base4:1.3
	simonb-wapbl:1.3.0.4
	simonb-wapbl-base:1.3
	yamt-pf42-base3:1.3
	hpcarm-cleanup-nbase:1.3
	yamt-pf42-baseX:1.2
	yamt-pf42-base2:1.3
	yamt-nfs-mp-base2:1.3
	wrstuden-revivesa:1.3.0.2
	wrstuden-revivesa-base:1.3
	yamt-nfs-mp:1.2.0.78
	yamt-nfs-mp-base:1.2
	yamt-pf42:1.2.0.76
	yamt-pf42-base:1.2
	ad-socklock-base1:1.2
	yamt-lazymbuf-base15:1.2
	yamt-lazymbuf-base14:1.2
	keiichi-mipv6-nbase:1.2
	mjf-devfs2:1.2.0.74
	mjf-devfs2-base:1.3
	nick-net80211-sync:1.2.0.72
	nick-net80211-sync-base:1.2
	keiichi-mipv6:1.2.0.70
	keiichi-mipv6-base:1.2
	bouyer-xeni386-merge1:1.2
	matt-armv6-prevmlocking:1.2
	wrstuden-fixsa-base-1:1.2
	vmlocking2-base3:1.2
	netbsd-4-0:1.2.0.68
	netbsd-4-0-RELEASE:1.2
	bouyer-xeni386-nbase:1.2
	yamt-kmem-base3:1.2
	cube-autoconf:1.2.0.66
	cube-autoconf-base:1.2
	yamt-kmem-base2:1.2
	bouyer-xeni386:1.2.0.64
	bouyer-xeni386-base:1.2
	yamt-kmem:1.2.0.62
	yamt-kmem-base:1.2
	vmlocking2-base2:1.2
	reinoud-bufcleanup-nbase:1.2
	vmlocking2:1.2.0.60
	vmlocking2-base1:1.2
	netbsd-4-0-RC5:1.2
	matt-nb4-arm:1.2.0.58
	matt-nb4-arm-base:1.2
	matt-armv6-nbase:1.2
	jmcneill-base:1.2
	netbsd-4-0-RC4:1.2
	mjf-devfs:1.2.0.56
	mjf-devfs-base:1.2
	bouyer-xenamd64-base2:1.2
	vmlocking-nbase:1.2
	yamt-x86pmap-base4:1.2
	bouyer-xenamd64:1.2.0.54
	bouyer-xenamd64-base:1.2
	netbsd-4-0-RC3:1.2
	yamt-x86pmap-base3:1.2
	yamt-x86pmap-base2:1.2
	netbsd-4-0-RC2:1.2
	yamt-x86pmap:1.2.0.52
	yamt-x86pmap-base:1.2
	netbsd-4-0-RC1:1.2
	matt-armv6:1.2.0.50
	matt-armv6-base:1.2
	jmcneill-pm:1.2.0.48
	jmcneill-pm-base:1.2
	hpcarm-cleanup:1.2.0.46
	hpcarm-cleanup-base:1.2
	nick-csl-alignment:1.2.0.44
	nick-csl-alignment-base:1.2
	matt-mips64:1.2.0.42
	matt-mips64-base:1.2
	netbsd-3-1-1-RELEASE:1.1
	netbsd-3-0-3-RELEASE:1.1
	yamt-idlelwp-base8:1.2
	wrstuden-fixsa:1.2.0.40
	wrstuden-fixsa-base:1.2
	ppcoea-renovation:1.2.0.38
	ppcoea-renovation-base:1.2
	thorpej-atomic:1.2.0.36
	thorpej-atomic-base:1.2
	reinoud-bufcleanup:1.2.0.34
	reinoud-bufcleanup-base:1.2
	mjf-ufs-trans:1.2.0.32
	mjf-ufs-trans-base:1.2
	vmlocking:1.2.0.30
	vmlocking-base:1.2
	ad-audiomp:1.2.0.28
	ad-audiomp-base:1.2
	yamt-idlelwp:1.2.0.26
	post-newlock2-merge:1.2
	newlock2-nbase:1.2
	yamt-splraiseipl-base5:1.2
	yamt-splraiseipl-base4:1.2
	yamt-splraiseipl-base3:1.2
	abandoned-netbsd-4-base:1.2
	abandoned-netbsd-4:1.2.0.18
	netbsd-3-1:1.1.0.24
	netbsd-3-1-RELEASE:1.1
	netbsd-3-0-2-RELEASE:1.1
	yamt-splraiseipl-base2:1.2
	netbsd-3-1-RC4:1.1
	yamt-splraiseipl:1.2.0.22
	yamt-splraiseipl-base:1.2
	netbsd-3-1-RC3:1.1
	yamt-pdpolicy-base9:1.2
	newlock2:1.2.0.20
	newlock2-base:1.2
	yamt-pdpolicy-base8:1.2
	netbsd-3-1-RC2:1.1
	netbsd-3-1-RC1:1.1
	yamt-pdpolicy-base7:1.2
	netbsd-4:1.2.0.24
	netbsd-4-base:1.2
	yamt-pdpolicy-base6:1.2
	chap-midi-nbase:1.2
	netbsd-3-0-1-RELEASE:1.1
	gdamore-uart:1.2.0.16
	gdamore-uart-base:1.2
	simonb-timcounters-final:1.2
	yamt-pdpolicy-base5:1.2
	chap-midi:1.2.0.14
	chap-midi-base:1.2
	yamt-pdpolicy-base4:1.2
	yamt-pdpolicy-base3:1.2
	peter-altq-base:1.2
	peter-altq:1.2.0.12
	yamt-pdpolicy-base2:1.2
	elad-kernelauth-base:1.2
	elad-kernelauth:1.2.0.10
	yamt-pdpolicy:1.2.0.8
	yamt-pdpolicy-base:1.2
	yamt-uio_vmspace-base5:1.2
	simonb-timecounters:1.2.0.6
	simonb-timecounters-base:1.2
	rpaulo-netinet-merge-pcb:1.2.0.4
	rpaulo-netinet-merge-pcb-base:1.2
	yamt-uio_vmspace:1.2.0.2
	netbsd-3-0:1.1.0.22
	netbsd-3-0-RELEASE:1.1
	netbsd-3-0-RC6:1.1
	yamt-readahead-base3:1.1
	netbsd-3-0-RC5:1.1
	netbsd-3-0-RC4:1.1
	netbsd-3-0-RC3:1.1
	yamt-readahead-base2:1.1
	netbsd-3-0-RC2:1.1
	yamt-readahead-pervnode:1.1
	yamt-readahead-perfile:1.1
	yamt-readahead:1.1.0.20
	yamt-readahead-base:1.1
	netbsd-3-0-RC1:1.1
	yamt-vop-base3:1.1
	yamt-vop-base2:1.1
	thorpej-vnode-attr:1.1.0.18
	thorpej-vnode-attr-base:1.1
	yamt-vop:1.1.0.16
	yamt-vop-base:1.1
	yamt-lazymbuf:1.1.0.14
	yamt-km-base4:1.1
	yamt-km-base3:1.1
	netbsd-3:1.1.0.12
	netbsd-3-base:1.1
	yamt-km-base2:1.1
	yamt-km:1.1.0.8
	yamt-km-base:1.1
	kent-audio2:1.1.0.6
	kent-audio2-base:1.1
	kent-audio1-beforemerge:1.1
	kent-audio1:1.1.0.4
	kent-audio1-base:1.1
	ktrace-lwp-base:1.1
	ktrace-lwp:1.1.0.2;
locks; strict;
comment	@// @;


1.4
date	2011.09.23.16.00.15;	author nonaka;	state Exp;
branches;
next	1.3;

1.3
date	2008.04.28.20.23.21;	author martin;	state Exp;
branches;
next	1.2;

1.2
date	2005.12.11.12.17.30;	author christos;	state Exp;
branches
	1.2.74.1
	1.2.76.1
	1.2.78.1;
next	1.1;

1.1
date	2004.08.06.17.23.14;	author uch;	state Exp;
branches
	1.1.2.1;
next	;

1.2.74.1
date	2008.06.02.13.22.09;	author mjf;	state Exp;
branches;
next	;

1.2.76.1
date	2008.05.18.12.32.02;	author yamt;	state Exp;
branches;
next	;

1.2.78.1
date	2008.05.16.02.22.27;	author yamt;	state Exp;
branches;
next	;

1.1.2.1
date	2004.08.06.17.23.14;	author skrll;	state dead;
branches;
next	1.1.2.2;

1.1.2.2
date	2004.08.12.11.41.11;	author skrll;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2004.09.18.14.34.46;	author skrll;	state Exp;
branches;
next	1.1.2.4;

1.1.2.4
date	2004.09.21.13.15.59;	author skrll;	state Exp;
branches;
next	;


desc
@@


1.4
log
@fix build failure.
@
text
@/*	$NetBSD: stricmp.cpp,v 1.3 2008/04/28 20:23:21 martin Exp $	*/

/*-
 * Copyright (c) 2004 The NetBSD Foundation, Inc.
 * All rights reserved.
 *
 * This code is derived from software contributed to The NetBSD Foundation
 * by UCHIYAMA Yasushi.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

#include "stand.h"
#include <sys/cdefs.h>
#include <sys/types.h>
#include <libsa_string.h>

LIBSA_NAMESPACE_BEGIN
__BEGIN_DECLS
int
stricmp(const char *s1, const char *s2)
{

	while (libsa::tolower(*s1) == libsa::tolower(*s2++))
		if (*s1++ == '\0')
			return 0;

	return libsa::tolower(*s1) - libsa::tolower(*--s2);
}
__END_DECLS
LIBSA_NAMESPACE_END
@


1.3
log
@Remove clause 3 and 4 from TNF licenses
@
text
@d1 1
a1 1
/*	$NetBSD: stricmp.cpp,v 1.2 2005/12/11 12:17:30 christos Exp $	*/
d32 1
a50 1

@


1.2
log
@merge ktrace-lwp.
@
text
@d1 1
a1 1
/*	$NetBSD: stricmp.cpp,v 1.1.2.3 2004/09/21 13:15:59 skrll Exp $	*/
a17 7
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *        This product includes software developed by the NetBSD
 *        Foundation, Inc. and its contributors.
 * 4. Neither the name of The NetBSD Foundation nor the names of its
 *    contributors may be used to endorse or promote products derived
 *    from this software without specific prior written permission.
@


1.2.74.1
log
@Sync with HEAD.
@
text
@d1 1
a1 1
/*	$NetBSD$	*/
d18 7
@


1.2.76.1
log
@sync with head.
@
text
@d1 1
a1 1
/*	$NetBSD: stricmp.cpp,v 1.2 2005/12/11 12:17:30 christos Exp $	*/
d18 7
@


1.2.78.1
log
@sync with head.
@
text
@d1 1
a1 1
/*	$NetBSD: stricmp.cpp,v 1.2 2005/12/11 12:17:30 christos Exp $	*/
d18 7
@


1.1
log
@move string manupurate routine to libsa
@
text
@d1 1
a1 1
/*	$NetBSD$	*/
@


1.1.2.1
log
@file stricmp.cpp was added on branch ktrace-lwp on 2004-08-12 11:41:11 +0000
@
text
@d1 57
@


1.1.2.2
log
@Sync with HEAD.
@
text
@a0 57
/*	$NetBSD: stricmp.cpp,v 1.1.2.1 2004/08/12 11:41:11 skrll Exp $	*/

/*-
 * Copyright (c) 2004 The NetBSD Foundation, Inc.
 * All rights reserved.
 *
 * This code is derived from software contributed to The NetBSD Foundation
 * by UCHIYAMA Yasushi.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 * 3. All advertising materials mentioning features or use of this software
 *    must display the following acknowledgement:
 *        This product includes software developed by the NetBSD
 *        Foundation, Inc. and its contributors.
 * 4. Neither the name of The NetBSD Foundation nor the names of its
 *    contributors may be used to endorse or promote products derived
 *    from this software without specific prior written permission.
 *
 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */

#include <sys/cdefs.h>
#include <sys/types.h>
#include <libsa_string.h>

LIBSA_NAMESPACE_BEGIN
__BEGIN_DECLS
int
stricmp(const char *s1, const char *s2)
{

	while (libsa::tolower(*s1) == libsa::tolower(*s2++))
		if (*s1++ == '\0')
			return 0;

	return libsa::tolower(*s1) - libsa::tolower(*--s2);
}
__END_DECLS
LIBSA_NAMESPACE_END

@


1.1.2.3
log
@Sync with HEAD.
@
text
@d1 1
a1 1
/*	$NetBSD: stricmp.cpp,v 1.1.2.2 2004/09/18 14:34:46 skrll Exp $	*/
@


1.1.2.4
log
@Fix the sync with head I botched.
@
text
@d1 1
a1 1
/*	$NetBSD: stricmp.cpp,v 1.1.2.3 2004/09/21 13:15:59 skrll Exp $	*/
@
