Root/
Source at commit 307 created 13 years 4 hours ago. By ifabio, merge changes from trunk (929). Also merge the module changes from Azimutz branche (fix compile error) Also edited the info.plist into AHCIPortInjector.kext: http://forum.voodooprojects.org/index.php/topic,1170.0.html | |
---|---|
1 | /*␊ |
2 | * strsep.c␊ |
3 | */␊ |
4 | ␊ |
5 | #include <string.h>␊ |
6 | ␊ |
7 | char *strsep(char **stringp, const char *delim)␊ |
8 | {␊ |
9 | ␉char *s = *stringp;␊ |
10 | ␉char *e;␊ |
11 | ␊ |
12 | ␉if (!s)␊ |
13 | ␉␉return NULL;␊ |
14 | ␊ |
15 | ␉e = strpbrk(s, delim);␊ |
16 | ␉if (e)␊ |
17 | ␉␉*e++ = '\0';␊ |
18 | ␊ |
19 | ␉*stringp = e;␊ |
20 | ␉return s;␊ |
21 | }␊ |
22 |