tesseract  3.03
/usr/local/google/home/jbreiden/tesseract-ocr-read-only/vs2010/port/strtok_r.cpp File Reference
#include <string.h>

Go to the source code of this file.

Functions

char * strtok_r (char *s1, const char *s2, char **lasts)

Function Documentation

char* strtok_r ( char *  s1,
const char *  s2,
char **  lasts 
)

Definition at line 38 of file strtok_r.cpp.

                                                       {
  char *ret;

  if (s1 == NULL)
    s1 = *lasts;
  while (*s1 && strchr(s2, *s1))
    ++s1;
  if (*s1 == '\0')
    return NULL;
  ret = s1;
  while (*s1 && !strchr(s2, *s1))
    ++s1;
  if (*s1)
    *s1++ = '\0';
  *lasts = s1;
  return ret;
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines