I am trying to manipulate string in my tinyOS application. I am reading some data off a serial port in ASCII (working fine although was fairly difficult to get going) which I then need to separate by tokens and for some strings I then need to convert these from ASCII to integer. Now, the standard C library has functions to do exactly this (strtok() and atoi()) but I cannot use these functions for some reason. Anyone know firstly why I cannot use these functions and secondly how I can go about either finding some alternatives or using the standard C ones? >From my understanding it is because it is not being compiled for the pc, therefore the standard C libraries do not apply. I am using XubunTOS and programming MICAz devices (Atm128).
I was trying to use the c libraries by including string.h but the compiler still doesn't know about these functions. I would rather not write my own functions to perform this. Thanks for any help and sorry if this is a silly question. Regards, Graham PS. This is my first time using the tinyos-help so hopefully this works.
_______________________________________________ Tinyos-help mailing list [email protected] https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help
