Magellan Linux

Diff of /trunk/mkinitrd-magellan/klibc/usr/klibc/strtok.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 532 by niro, Sat Sep 1 22:45:15 2007 UTC revision 1122 by niro, Wed Aug 18 21:11:40 2010 UTC
# Line 8  char *strtok(char *s, const char *delim) Line 8  char *strtok(char *s, const char *delim)
8  {  {
9   static char *holder;   static char *holder;
10    
11   if (s)   return strtok_r(s, delim, &holder);
  holder = s;  
   
  do {  
  s = strsep(&holder, delim);  
  } while (s && !*s);  
   
  return s;  
12  }  }

Legend:
Removed from v.532  
changed lines
  Added in v.1122