[En-Nut-Discussion] strtok_r for ImageCraft compiler
Oliver Schulz
olischulz at web.de
Mon Jul 26 22:25:53 CEST 2004
Hi all,
one question for the community.
Avr-libc supplies the function strtok_r with the following prototype
char *strtok_r(char *, const char *, char **);
which follows the most implementations that I found on the net.
The ImageCraft compiler doesn't have this function, so Nut/OS supplies the
function for ICC, but with this prototype
char * strtok_r( char ** pp_str, const char * p_delim );
These two versions are obviously not compatible.
To get out of this dilemma and avoid conditional compilations for the two
supported compilers, I suggest to change the function for ICC according to
the avr-libc one.
Of course some of the written code has to be adjusted, but I think that not
the big thing to get rid of this little mess.
Now waiting for your comments!
Regards,
Oliver.
More information about the En-Nut-Discussion
mailing list