Back to index

glibc  2.9
bug-strpbrk1.c
Go to the documentation of this file.
00001 /* Test case by Joseph S. Myers <jsm28@cam.ac.uk>.  */
00002 #undef __USE_STRING_INLINES
00003 #define __USE_STRING_INLINES
00004 #include <string.h>
00005 #include <stdlib.h>
00006 #include <stdio.h>
00007 
00008 int
00009 main (void)
00010 {
00011   const char *a = "abc";
00012   const char *b = a;
00013 
00014   strpbrk (b++, "");
00015   if (b != a + 1)
00016     return 1;
00017 
00018   return 0;
00019 }