diff options
author | Ulrich Drepper <drepper@redhat.com> | 2005-04-12 15:29:07 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2005-04-12 15:29:07 +0000 |
commit | 806bc96abb96212c38ef54ea80a86b45647161eb (patch) | |
tree | 479050d0c1226f7e08ecdef9b3de2f20271f6aa2 /string/tst-strfry.c | |
parent | fcc3501c221534c9329d2f438ecf0f1323f18a4d (diff) | |
download | glibc-806bc96abb96212c38ef54ea80a86b45647161eb.tar.gz glibc-806bc96abb96212c38ef54ea80a86b45647161eb.tar.xz glibc-806bc96abb96212c38ef54ea80a86b45647161eb.zip |
* stdlib/random_r.c (__initstate_r): Don't use non-existing state.
* string/tst-strfry.c: New file. * string/Makefile (tests): Add tst-strfry.
Diffstat (limited to 'string/tst-strfry.c')
-rw-r--r-- | string/tst-strfry.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/string/tst-strfry.c b/string/tst-strfry.c new file mode 100644 index 0000000000..2b40a39b13 --- /dev/null +++ b/string/tst-strfry.c @@ -0,0 +1,15 @@ +#include <stdio.h> +#include <string.h> + +static int +do_test (void) +{ + char str[] = "this is a test"; + + strfry (str); + + return 0; +} + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" |