chipKIT® Development Platform

Inspired by Arduino™

itoa() function signature

Created Wed, 15 Jun 2011 13:15:37 +0000 by jgetto


jgetto

Wed, 15 Jun 2011 13:15:37 +0000

When trying to use a library (ArduinoUnit) I ran into an issue where the library expects the itoa function to have the signature itoa(int val, char* buf, int base). This is consistent with the AVR documentation (apparently a URL looks too spamy so I can't provide it here). However when I looked in stdlib.h I found that it has the signature itoa(char * buf, int val, int base).

Changing the library was not difficult, but it would be convenient if the signatures matched to begin with.


jasonk

Wed, 15 Jun 2011 15:15:12 +0000

Thanks for the post. The itoa() and related signatures are changed in the test build, which may soon become the official build.