Maybe you can find your answers in the newly added tutorial on using
printf in TinyOS 2.0

http://tinyos.cvs.sourceforge.net/*checkout*/tinyos/tinyos-2.x/doc/html/tutorial/lesson15.html

Kevin

On 8/16/07, Graham Rivers-Brown <[EMAIL PROTECTED]> wrote:
> 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
>


-- 
~Kevin
_______________________________________________
Tinyos-help mailing list
[email protected]
https://mail.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help

Reply via email to