From 806bc96abb96212c38ef54ea80a86b45647161eb Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 12 Apr 2005 15:29:07 +0000 Subject: * stdlib/random_r.c (__initstate_r): Don't use non-existing state. * string/tst-strfry.c: New file. * string/Makefile (tests): Add tst-strfry. --- string/tst-strfry.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 string/tst-strfry.c (limited to 'string/tst-strfry.c') 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 +#include + +static int +do_test (void) +{ + char str[] = "this is a test"; + + strfry (str); + + return 0; +} + +#define TEST_FUNCTION do_test () +#include "../test-skeleton.c" -- cgit v1.2.3