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/C++ v10.0 : C library - 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:

_bprintf
    formatted transmission to fixed-length string

_fstrcat
    concatenate two far strings

_fstrchr
    locate character in far string

_fstrcmp
    compare two far strings

_fstrcpy
    copy far string

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

_fstricmp
    compare two far strings with case insensitivity

_fstrlen
    length of a far string

_fstrlwr
    convert far string to lowercase

_fstrncat
    concatenate two far strings, up to a maximum length

_fstrncmp
    compare two far strings up to maximum length

_fstrncpy
    copy a far string, up to a maximum length

_fstrnicmp
    compare two far strings with case insensitivity up to a maximum length

_fstrnset
    fill far string with character to a maximum length

_fstrpbrk
    locate occurrence of a string within a second string

_fstrrchr
    locate last occurrence of character from a character set

_fstrrev
    reverse a far string in place

_fstrset
    fill far string with a character

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

_fstrstr
    find first occurrence of string in second string

_fstrtok
    get next token from a far string

_fstrupr
    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

strdup
    allocate and duplicate a string

strerror
    get error message as string

stricmp
    compare two strings with case insensitivity

strlen
    string length

strlwr
    convert string to lowercase

strncat
    concatenate two strings, up to a maximum length

strncmp
    compare two strings up to maximum length

strncpy
    copy a string, up to a maximum length

strnicmp
    compare two strings with case insensitivity up to a maximum length

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
    reverse a string in place

strset
    fill string with a character

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

strstr
    find first occurrence of string in second string

strtok
    get next token from string

strupr
    convert string to uppercase

strxfrm
    transform string to locale's collating sequence

_vbprintf
    same as _bprintf but with variable arguments

vsprintf
    same as sprintf 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