git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@2621
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+2003-05-14 Bernhard Held <bernhard@bernhardheld.de>
+
+ * device/lib/_strtok.c: fixed bug #734355 by Lenny Story and Tim Woodall
+
2003-05-13 Bernhard Held <bernhard@bernhardheld.de>
* src/pic16/*: removed CR from many files, reported by Vangelis Rokas
if ( str )
s = str ;
+ if ( !s )
+ return NULL;
+ while (*s) {
+ if (strchr(control,*s))
+ s++;
+ else
+ break;
+ }
+
s1 = s ;
while (*s) {
}
s++ ;
}
- return (NULL);
+
+ s = NULL;
+
+ if (*s1)
+ return s1;
+ else
+ return NULL;
}