/* strncs.c Compare two strings case insensitively up to a point. */ #include "uucp.h" #include int strncasecmp (z1, z2, c) const char *z1; const char *z2; size_t c; { char b1, b2; if (c == 0) return 0; while ((b1 = *z1++) != '\0') { b2 = *z2++; if (b2 == '\0') return 1; if (b1 != b2) { if (isupper (BUCHAR (b1))) b1 = tolower (BUCHAR (b1)); if (isupper (BUCHAR (b2))) b2 = tolower (BUCHAR (b2)); if (b1 != b2) return b1 - b2; } --c; if (c == 0) return 0; } if (*z2 == '\0') return 0; else return -1; } ge='this.form.submit();'> NetBSD fork for lockdoc analysismerlin@scholz.ruhr
summaryrefslogtreecommitdiff
path: root/sys/dev/dm/dm_pdev.c
AgeCommit message (Expand)Author
2010-01-04Indent files remove unnecessary blank lines, white spaces and KNFize code.haad
2010-01-03Replace aprint_Verbose with aprint_debug to shutup unnecessary logs.haad
2009-09-09Fix bug in kmem_alloc/kmem_free of params string. Params string washaad
2009-03-18Ansify function definitions w/o arguments. Generated with sed.cegger
2008-12-19Merge the haad-dm branch to -current. This branch adds LVM functionality tohaad