Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom C Library Reference - a<b> string</b> is an array of characters (with type char) that is terminated with http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
A string is an array of characters (with type char) that is terminated with
an extra null character ('\0').  Functions are passed only the address of
the string since the size can be determined by searching for the terminating
character.  The functions that begin with "_f" accept far pointers as their
arguments allowing manipulation of any memory location regardless of which
memory model your program has been compiled for.  The following functions
are defined:

bcmp
    compare two byte strings

bcopy
    copy a byte string

_bprintf
    formatted transmission to fixed-length string

bzero
    zero a byte string

_fstrcat (see strcat)
    concatenate two far strings

_fstrchr (see strchr)
    locate character in far string

_fstrcmp (see strcmp)
    compare two far strings

_fstrcpy (see strcpy)
    copy far string

_fstrcspn (see strcspn)
    get number of string characters not from a set of characters

_fstricmp (see stricmp)
    compare two far strings with case insensitivity

_fstrlen (see strlen)
    length of a far string

_fstrlwr (see strlwr)
    convert far string to lowercase

_fstrncat (see strncat)
    concatenate two far strings, up to a maximum length

_fstrncmp (see strncmp)
    compare two far strings up to maximum length

_fstrncpy (see strncpy)
    copy a far string, up to a maximum length

_fstrnicmp (see strnicmp)
    compare two far strings with case insensitivity up to a maximum length

_fstrnset (see strnset)
    fill far string with character to a maximum length

_fstrpbrk (see strpbrk)
    locate occurrence of a string within a second string

_fstrrchr (see strrchr)
    locate last occurrence of character from a character set

_fstrrev (see strrev)
    reverse a far string in place

_fstrset (see strset)
    fill far string with a character

_fstrspn (see strspn)
    find number of characters at start of string which are also in a second
    string

_fstrstr (see strstr)
    find first occurrence of string in second string

_fstrtok (see strtok)
    get next token from a far string

_fstrupr (see strupr)
    convert far string to uppercase

sprintf
    formatted transmission to string

sscanf
    scan from string under format control

strcat
    concatenate string

strchr
    locate character in string

strcmp
    compare two strings

strcmpi
    compare two strings with case insensitivity

strcoll
    compare two strings using "locale" collating sequence

strcpy
    copy a string

strcspn
    get number of string characters not from a set of characters

_strdec
    returns pointer to the previous character in string

_strdup (see strdup)
    allocate and duplicate a string

strerror
    get error message as string

_stricmp (see stricmp)
    compare two strings with case insensitivity

_strinc
    return pointer to next character in string

strlen
    string length

_strlwr (see strlwr)
    convert string to lowercase

strncat
    concatenate two strings, up to a maximum length

strncmp
    compare two strings up to maximum length

_strncnt (see _mbsnbcnt)
    count the number of characters in the first "n" bytes

strncpy
    copy a string, up to a maximum length

_strnextc (see _mbsnextc)
    return integer value of the next character in string

_strnicmp (see strnicmp)
    compare two strings with case insensitivity up to a maximum length

_strninc
    increment character pointer by "n" characters

_strnset (see strnset)
    fill string with character to a maximum length

strpbrk
    locate occurrence of a string within a second string

strrchr
    locate last occurrence of character from a character set

_strrev (see strrev)
    reverse a string in place

_strset (see strset)
    fill string with a character

strspn
    find number of characters at start of string which are also in a second
    string

_strspnp (see strspnp)
    return pointer to first character of string not in set

strstr
    find first occurrence of string in second string

strtok
    get next token from string

_strupr (see strupr)
    convert string to uppercase

strxfrm
    transform string to locale's collating sequence

_vbprintf
    same as "_bprintf" but with variable arguments

vsscanf
    same as "sscanf" but with variable arguments

For related functions see the sections Conversion Functions (conversions to
and from strings), Time Functions (formatting of dates and times), and
Memory Manipulation Functions (operate on arrays without terminating null
character).

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson