Subversion Repositories Kolibri OS

Rev

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

Rev Author Line No. Line
145 halyavin 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
}