It took me some time to find out that the documentation of the newlib library is probably the document above.
I found it at
http://www.codesourcery.com/sgpp/lite/arm/portal/doc714/libc.pdfI did not find however what the 'restrict' in the function below mean.
char * strtok (char *restrict newstring, const char *restrict delimiters )
???
and in case this has no bearing on this try:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{ char *ptr = "THIS=that";
char ttname[100], ttvalue[100];
char *ttnm = ttname;
char *ttval = ttvalue;
const char *delimiters = "=";
ttnm = strtok (ptr, delimiters);
printf("ToolType = %s\\n", ttnm);
ttval = strtok (NULL, delimiters);
printf("ToolType = %s\\n", ttval);
return 0;
}
Why does this crash? (no error or warning)
Edited by JosDuchIt on 2011/7/19 20:31:54