[GOOD] BUILD 0.1.0.470 DATE 8/30/2011 AT 6:40 PM
==================================================== Mainly changed: HAL.VFS + Designed virtual file system + Completed the VFS + Added verbose mode for VFS + Updated shell script, now shows build number when building ? TODO: Implement one file system (most likely FAT12) ? TODO: Mount floppy device
This commit is contained in:
@ -37,3 +37,20 @@ string strcpy (string s1, const string s2)
|
||||
|
||||
return s1;
|
||||
}
|
||||
|
||||
char* strchr (string s, int c)
|
||||
{
|
||||
while (*s != '\0' && *s != (char)c) s++;
|
||||
return ((*s == (char)c) ? (char*)s : NULL);
|
||||
}
|
||||
|
||||
char* strrchr (string s, int c)
|
||||
{
|
||||
string last = NULL;
|
||||
|
||||
if (c == '\0') return strchr(s, c);
|
||||
while ((s = strchr(s, c)) != NULL)
|
||||
last = s; s++;
|
||||
|
||||
return (char*)last;
|
||||
}
|
||||
|
Reference in New Issue
Block a user