Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #include "string.h"
  2. char* strtok(char* s,const char* delim)
  3. {
  4.         char* res;
  5.         if (*s=='\0')
  6.                 return (char*)0;
  7.         s+=strspn(s,delim);
  8.         if (*s=='\0')
  9.                 return (char*)0;
  10.         res=s;
  11.         s+=strcspn(s,delim);
  12.         *s=='\0';
  13.         return res;
  14. }
  15.