The ANSI library contains both a generalized searching and a generalized sorting procedure:
void* bsearch(const void *key, const void *array, size_t n, size_t size, cmp_func f); void qsort(void *array, size_t n, size_t size, cmp_func f); Character Functions
These functions test or convert characters. All these functions are implemented both as macros and as functions, and, by default, the macros are active. To use the corresponding function, you have to #undefine the macro.
int isalnum(int ch); int isalpha(int ch); int iscntrl(int ch); int isdigit(int ch); int isgraph(int ch); int islower(int ch); int isprint(int ch); int ispunct(int ch); int isspace(int ch); int isupper(int ch); int isxdigit(int ch); int tolower(int ch); int toupper(int ch);
The ANSI library also defines an interface for multibyte and wide characters. The implementation only offers minimum support for this feature: the maximum length of a multibyte character is one byte.
int mblen(char *mbs, size_t n); size_t mbstowcs(wchar_t *wcs, const char *mbs, size_t n); int mbtowc(wchar_t *wc, const char *mbc, size_t n); size_t wcstombs(char *mbs, const wchar_t *wcs size_t n); int wctomb(char *mbc, wchar_t wc);