Subversion Repositories Kolibri OS

Rev

Rev 647 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 647 Rev 6433
Line -... Line 1...
-
 
1
#include 
-
 
2
 
1
char* strchr(const char* string, int c)
3
char* strchr(const char* string, int c)
2
{
4
{
3
	while (*string)
-
 
4
	{
5
	do {
5
		if (*string==c)
6
		if (*string == (char)c)
6
			return (char*)string;
7
			return (char*)string;
7
		string++;
8
	} while (*string++);
8
	}	
9
 
9
	return (char*)0;
10
    return NULL;
10
}
11
}