Back to index

glibc  2.9
Functions
tst-strtok.c File Reference
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Functions

int main (void)

Function Documentation

int main ( void  )

Definition at line 6 of file tst-strtok.c.

{
  char buf[1] = { 0 };
  int result = 0;

  if (strtok (buf, " ") != NULL)
    {
      puts ("first strtok call did not return NULL");
      result = 1;
    }
  else if (strtok (NULL, " ") != NULL)
    {
      puts ("second strtok call did not return NULL");
      result = 1;
    }

  return result;
}

Here is the call graph for this function: