Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ string(SLIB) — OpenDesktop Software Development System 3.0.0

Media Vault

Software Library

Restoration Projects

Artifacts Sought


 string(SLIB)                   6 January 1993                   string(SLIB)


 Name

    string, strcasecmp, strncasecmp, index, rindex - string operations

 Syntax


    strcasecmp(s1, s2)
    char *s1, *s2;

    strncasecmp(s1, s2, count)
    char *s1, *s2;
    int count;

    char *index(s, c)
    char *s, c;

    char *rindex(s, c)
    char *s, c;


 Description

    These functions operate on null-terminated strings.

    strcasecmp and strncasecmp are identical in function to strcmp(S) and
    strncmp(S), but are case insensitive.  The returned lexicographic differ-
    ence reflects a conversion to lower-case.

    index (rindex) returns a pointer to the first (last) occurrence of char-
    acter c in string s, or zero if c does not occur in s.


Typewritten Software • bear@typewritten.org • Edmonds, WA 98026