diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-03-19 10:15:27 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-04-11 14:21:32 -0300 |
commit | 4b717562c4768883a87f62d67610c0a48e911445 (patch) | |
tree | 1aceb449aab6f90216299930f8356c9463fe3649 /wcsmbs/wcsstr.c | |
parent | 686d5420253bd76b1b7458f91d6ef9fc1a12b229 (diff) | |
download | glibc-4b717562c4768883a87f62d67610c0a48e911445.tar.gz glibc-4b717562c4768883a87f62d67610c0a48e911445.tar.xz glibc-4b717562c4768883a87f62d67610c0a48e911445.zip |
wcsmbs: Add test-wcsstr
Parametrize test-strstr.c so it can be used to check wcsstr. Checked on x86_64-linux-gnu and aarch64-linux-gnu. Reviewed-by: DJ Delorie <dj@redhat.com>
Diffstat (limited to 'wcsmbs/wcsstr.c')
-rw-r--r-- | wcsmbs/wcsstr.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/wcsmbs/wcsstr.c b/wcsmbs/wcsstr.c index 78f1cc9ce0..b49630c1cf 100644 --- a/wcsmbs/wcsstr.c +++ b/wcsmbs/wcsstr.c @@ -28,8 +28,12 @@ #include <wchar.h> +#ifndef WCSSTR +# define WCSSTR wcsstr +#endif + wchar_t * -wcsstr (const wchar_t *haystack, const wchar_t *needle) +WCSSTR (const wchar_t *haystack, const wchar_t *needle) { wchar_t b, c; |