diff options
author | Ulrich Drepper <drepper@redhat.com> | 2007-09-23 18:27:55 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2007-09-23 18:27:55 +0000 |
commit | 9cc198f65ba914867c8146ab23e0c6adac22a1fb (patch) | |
tree | f59086bfae619c6ef493f4bf33069492f05ca56e /wcsmbs/wcsatcliff.c | |
parent | 27f3d4467d476455a438b825c4edd274fb5b17a8 (diff) | |
download | glibc-9cc198f65ba914867c8146ab23e0c6adac22a1fb.zip glibc-9cc198f65ba914867c8146ab23e0c6adac22a1fb.tar.gz glibc-9cc198f65ba914867c8146ab23e0c6adac22a1fb.tar.bz2 |
[BZ #4963]
* 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.
Diffstat (limited to 'wcsmbs/wcsatcliff.c')
-rw-r--r-- | wcsmbs/wcsatcliff.c | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/wcsmbs/wcsatcliff.c b/wcsmbs/wcsatcliff.c new file mode 100644 index 0000000..22db607 --- /dev/null +++ b/wcsmbs/wcsatcliff.c @@ -0,0 +1,20 @@ +#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" |