From 9df73edf21694f640f489f84755d19ea5ca9ddaa Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 31 Dec 2013 23:03:47 +0000 Subject: Provide strcasestr(3) and strsep(3) for Solaris 10 compat; reported missing by Matthias Scheler via wiz@. --- test-strsep.c | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test-strsep.c (limited to 'test-strsep.c') diff --git a/test-strsep.c b/test-strsep.c new file mode 100644 index 00000000..4c57c13e --- /dev/null +++ b/test-strsep.c @@ -0,0 +1,10 @@ +#include + +int +main(void) +{ + char buf[6] = "aybxc"; + char *workp = buf; + char *retp = strsep(&workp, "xy"); + return( ! (retp == buf && '\0' == buf[1] && buf + 2 == workp)); +} -- cgit v1.2.3-56-ge451