KURT PETERS wrote: > I get the following error when trying to compile my file for TOSSIM in > TinyOS 2.0.2. >> make micaz sim > ... > newdisC.nc: In function `Timer2.fired': > newdisC.nc:142: implicit declaration of function `itoa' > make: *** [sim-exe] Error 1 > > Note, the file compiles (and runs) fine on the real micaz.
atoi() is included in the C standard, but surprisingly itoa() is not. Some implementations of libc define it anyway for the sake of symmetry, but it's not guaranteed to be available on all hosts. If you want to convert integers to strings in a portable way, use sprintf(). Greg Hackmann _______________________________________________ Tinyos-help mailing list Tinyos-help@millennium.berkeley.edu https://www.millennium.berkeley.edu/cgi-bin/mailman/listinfo/tinyos-help