Annotation of 43BSDReno/lib/libc/string/strcasecmp.3, revision 1.1

1.1     ! root        1: .\" Copyright (c) 1990 The Regents of the University of California.
        !             2: .\" All rights reserved.
        !             3: .\"
        !             4: .\" This code is derived from software contributed to Berkeley by
        !             5: .\" Chris Torek.
        !             6: .\"
        !             7: .\" Redistribution and use in source and binary forms are permitted provided
        !             8: .\" that: (1) source distributions retain this entire copyright notice and
        !             9: .\" comment, and (2) distributions including binaries display the following
        !            10: .\" acknowledgement:  ``This product includes software developed by the
        !            11: .\" University of California, Berkeley and its contributors'' in the
        !            12: .\" documentation or other materials provided with the distribution and in
        !            13: .\" all advertising materials mentioning features or use of this software.
        !            14: .\" Neither the name of the University nor the names of its contributors may
        !            15: .\" be used to endorse or promote products derived from this software without
        !            16: .\" specific prior written permission.
        !            17: .\" THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
        !            18: .\" WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
        !            19: .\" MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
        !            20: .\"
        !            21: .\"    @(#)strcasecmp.3        5.2 (Berkeley) 6/24/90
        !            22: .\"
        !            23: .TH STRCASECMP 3 "June 24, 1990"
        !            24: .UC 7
        !            25: .SH NAME
        !            26: strcasecmp \- compare strings, ignoring case
        !            27: .SH SYNOPSIS
        !            28: .nf
        !            29: .ft B
        !            30: #include <string.h>
        !            31: 
        !            32: int
        !            33: strcasecmp(const char *s1, const char *s2);
        !            34: 
        !            35: int
        !            36: strncasecmp(const char *s1, const char *s2, size_t len);
        !            37: .ft R
        !            38: .fi
        !            39: .SH DESCRIPTION
        !            40: .B Strcasecmp
        !            41: and
        !            42: .B strncasecmp
        !            43: compare the null-terminated strings
        !            44: .I s1
        !            45: and
        !            46: .I s2
        !            47: and return an integer greater than, equal to, or less than 0,
        !            48: according as
        !            49: .I s1
        !            50: is lexicographically greater than, equal to, or less than
        !            51: .IR s2
        !            52: after translation of each corresponding character to lower-case.
        !            53: The strings themselves are not modified.
        !            54: The comparison is done using unsigned characters, so that '\e200'
        !            55: is greater than '\e0'.
        !            56: .PP
        !            57: .B Strncasecmp
        !            58: compares at most
        !            59: .I len
        !            60: characters.
        !            61: .SH SEE ALSO
        !            62: bcmp(3), memcmp(3), strcmp(3), strcoll(3), strxfrm(3)

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.