Return to test-strsep.c CVS log | Up to [cvsweb.bsd.lv] / mandoc |
File: [cvsweb.bsd.lv] / mandoc / test-strsep.c (download)
Revision 1.2, Tue Oct 6 18:32:20 2015 UTC (8 years, 11 months ago) by schwarze
modernize style: "return" is not a function |
#include <string.h> int main(void) { char buf[6] = "aybxc"; char *workp = buf; char *retp = strsep(&workp, "xy"); return ! (retp == buf && buf[1] == '\0' && workp == buf + 2); }