Wide Character String Operation Functions

┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ Function │ Header File │ Link to Function │ Descriptio│
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ mblen │ "stdlib.h" │ mblen │ Deter- │
│ │ │ │ mines │
│ │ │ │ length of │
│ │ │ │ string. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcscat │ "wchar.h" │ wcscat │ Concat- │
│ │ │ │ enates │
│ │ │ │ wchar_t │
│ │ │ │ strings. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcschr │ "wchar.h" │ wcschr │ Searches │
│ │ │ │ wchar_t │
│ │ │ │ string │
│ │ │ │ for char- │
│ │ │ │ acter. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcscmp │ "wchar.h" │ wcscmp │ Compares │
│ │ │ │ wchar_t │
│ │ │ │ strings. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcscoll │ "wchar.h" │ wcscoll │ Compares │
│ │ │ │ two wide │
│ │ │ │ character │
│ │ │ │ strings │
│ │ │ │ based on │
│ │ │ │ collating │
│ │ │ │ elements │
│ │ │ │ for the │
│ │ │ │ current │
│ │ │ │ locale. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcscpy │ "wchar.h" │ wcscpy │ Copies │
│ │ │ │ wchar_t │
│ │ │ │ string. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcscspn │ "wchar.h" │ wcscspn │ Searches │
│ │ │ │ wchar_t │
│ │ │ │ string │
│ │ │ │ for char- │
│ │ │ │ acters. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcslen │ "wchar.h" │ wcslen │ Finds │
│ │ │ │ length of │
│ │ │ │ wchar_t │
│ │ │ │ string. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcsncat │ "wchar.h" │ wcsncat │ Concat- │
│ │ │ │ enates │
│ │ │ │ wchar_t │
│ │ │ │ string │
│ │ │ │ segment. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcsncmp │ "wchar.h" │ wcsncmp │ Compares │
│ │ │ │ wchar_t │
│ │ │ │ string │
│ │ │ │ segments. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcsncpy │ "wchar.h" │ wcsncpy │ Copies │
│ │ │ │ wchar_t │
│ │ │ │ string │
│ │ │ │ segments. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcspbrk │ "wchar.h" │ wcspbrk │ Locates │
│ │ │ │ wchar_t │
│ │ │ │ charac- │
│ │ │ │ ters in │
│ │ │ │ string. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcsspn │ "wchar.h" │ wcsspn │ Finds │
│ │ │ │ number of │
│ │ │ │ wchar_t │
│ │ │ │ charac- │
│ │ │ │ ters. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcsrchr │ "wchar.h" │ wcsrchr │ Locates │
│ │ │ │ wchar_t │
│ │ │ │ character │
│ │ │ │ in │
│ │ │ │ string. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘
┌─────────────────────────┬──────────────┬─────────────────────────┬───────────┐
│ wcsstr │ "wchar.h" │ wcsstr │ Locates │
│ │ │ │ the first │
│ │ │ │ occur- │
│ │ │ │ rence of │
│ │ │ │ a wide │
│ │ │ │ character │
│ │ │ │ string │
│ │ │ │ within │
│ │ │ │ another │
│ │ │ │ wide │
│ │ │ │ character │
│ │ │ │ string. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcstok │ "wchar.h" │ wcstok │ Locates a │
│ │ │ │ specified │
│ │ │ │ token in │
│ │ │ │ a wide │
│ │ │ │ character │
│ │ │ │ string. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcswcs │ "wchar.h" │ wcswcs │ Locates a │
│ │ │ │ wchar_t │
│ │ │ │ string in │
│ │ │ │ another │
│ │ │ │ wchar_t │
│ │ │ │ string. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcswidth │ "wchar.h" │ wcswidth │ Deter- │
│ │ │ │ mines the │
│ │ │ │ number of │
│ │ │ │ display │
│ │ │ │ positions │
│ │ │ │ required │
│ │ │ │ to │
│ │ │ │ display a │
│ │ │ │ given │
│ │ │ │ wide │
│ │ │ │ character │
│ │ │ │ string. │
├─────────────────────────┼──────────────┼─────────────────────────┼───────────┤
│ wcsxfrm │ "wchar.h" │ wcsxfrm │ Trans- │
│ │ │ │ forms │
│ │ │ │ wide │
│ │ │ │ character │
│ │ │ │ strings │
│ │ │ │ according │
│ │ │ │ to the │
│ │ │ │ current │
│ │ │ │ locale. │
└─────────────────────────┴──────────────┴─────────────────────────┴───────────┘


[Back: Character Case Mapping]
[Next: Differentiating between Memory Management Functions]