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> wide string</b> is an array of wide characters (with type wchar_t) that is http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
A wide string is an array of wide characters (with type wchar_t) that is
terminated with an extra null wide character (L'\0').  Functions are passed
only the address of the wide 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:

_fmbscat (see strcat)
    concatenate two far strings

_fmbschr (see strchr)
    locate character in far string

_fmbscmp (see strcmp)
    compare two far strings

_fmbscpy (see strcpy)
    copy far string

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

_fmbsdec (see _strdec)
    returns far pointer to the previous character in far string

_fmbsdup (see strdup)
    allocate and duplicate a far string

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

_fmbsinc (see _strinc)
    return far pointer to next character in far string

_fmbslen (see strlen)
    length of a far string

_fmbslwr (see strlwr)
    convert far string to lowercase

_fmbsnbcat (see _mbsnbcat)
    append up to "n" bytes of string to another string

_fmbsnbcmp (see _mbsnbcmp)
    compare up to "n" bytes in two strings

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

_fmbsnbcpy (see _mbsnbcpy)
    copy up to "n" bytes of a string

_fmbsnbicmp (see _mbsnbicmp)
    compare up to "n" bytes in two strings with case insensitivity

_fmbsnbset (see _mbsnbset)
    fill string with up to "n" bytes

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

_fmbsnccnt (see _mbsnccnt)
    count the number of characters in the first "n" bytes

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

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

_fmbsnextc (see _mbsnextc)
    return integer value of the next multibyte-character in far string

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

_fmbsninc (see _strninc)
    increment wide character far pointer by "n" characters

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

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

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

_fmbsrev (see strrev)
    reverse a far string in place

_fmbsrtowcs (see mbsrtowcs)
    convert multibyte character string to wide character string

_fmbsset (see strset)
    fill far string with a character

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

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

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

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

_fmbstowcs (see mbstowcs)
    convert multibyte character string to wide character string

_fmbsupr (see strupr)
    convert far string to uppercase

_fmbterm (see _mbterm)
    determine if next multibyte character in string is null

_fmbvtop (see _mbvtop)
    store multibyte character into far string

_fwcrtomb (see wcrtomb)
    convert wide character to multibyte character and store

_fwcsrtombs (see wcsrtombs)
    convert far wide character string to far multibyte character string

_fwcstombs (see wcstombs)
    convert far wide character string to far multibyte character string

_fwctomb (see wctomb)
    convert wide character to multibyte character

_mbscat (see strcat)
    concatenate string

_mbschr (see strchr)
    locate character in string

_mbscmp (see strcmp)
    compare two strings

_mbscoll (see strcoll)
    compare two strings using "locale" collating sequence

_mbscpy (see strcpy)
    copy a string

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

_mbsdec (see _strdec)
    returns pointer to the previous character in string

_mbsdup (see strdup)
    allocate and duplicate a string

_mbsicmp (see stricmp)
    compare two strings with case insensitivity

_mbsinc (see _strinc)
    return pointer to next character in string

_mbslen (see strlen)
    string length

_mbslwr (see strlwr)
    convert string to lowercase

_mbsnbcat
    append up to "n" bytes of string to another string

_mbsnbcmp
    compare up to "n" bytes in two strings

_mbsnbcnt
    count the number of characters in the first "n" bytes

_mbsnbcpy
    copy up to "n" bytes of a string

_mbsnbicmp
    compare up to "n" bytes in two strings with case insensitivity

_mbsnbset
    fill string with up to "n" bytes

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

_mbsnccnt
    count the number of characters in the first "n" bytes

_mbsncmp (see strncmp)
    compare two strings up to maximum length

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

_mbsnextc
    return integer value of the next multibyte-character in string

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

_mbsninc (see _strninc)
    increment wide character pointer by "n" characters

_mbsnset (see strnset)
    fill string with up to "n" multibyte characters

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

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

_mbsrev (see strrev)
    reverse a string in place

mbsrtowcs
    convert multibyte character string to wide character string

_mbsset (see strset)
    fill string with a character

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

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

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

_mbstok (see strtok)
    get next token from string

mbstowcs
    convert multibyte character string to wide character string

_mbsupr (see strupr)
    convert string to uppercase

_mbterm
    determine if next multibyte character in string is null

_mbvtop
    store multibyte character into string

sisinit
    determine if mbstate_t object describes an initial conversion state

wcrtomb
    convert wide character to multibyte character and store

wcsrtombs
    convert wide character string to multibyte character string

wcstombs
    convert wide character string to multibyte character string

wctob
    return single-byte character version of wide character

wctomb
    convert wide character to multibyte character

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