mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-10 15:20:10 +00:00
9cc198f65b
* wcsmbs/wcsnlen.c: Don't reference before checking the length. * string/stratcliff.c: Make usable to test wide char functions. * wcsmbs/wcsatcliff.c: New file. * wcsmbs/Makefiel (tests): Add wcsatcliff.
21 lines
391 B
C
21 lines
391 B
C
#include <wchar.h>
|
|
|
|
#define WCSTEST 1
|
|
#define L(c) L##c
|
|
#define CHAR wchar_t
|
|
#define MEMSET wmemset
|
|
#define STRLEN wcslen
|
|
#define STRNLEN wcsnlen
|
|
#define STRCHR wcschr
|
|
#define STRRCHR wcsrchr
|
|
#define STRCPY wcscpy
|
|
#define STRNCPY wcsncpy
|
|
#define MEMCMP wmemcmp
|
|
#define STPCPY wcpcpy
|
|
#define STPNCPY wcpncpy
|
|
#define MEMCPY wmemcpy
|
|
#define MEMPCPY wmempcpy
|
|
|
|
|
|
#include "../string/stratcliff.c"
|