new stdio functions added:
  printf vprintf sprintf snprinf vsprintf vsnprintf

they all depend on vuprintf (which has almost the same innards as the old uprintf, same formats are supported) printf and vprintf additionaly depend on "int putchar(char c)" as ouput function, which has to be supplied by the user.

vuprintf implements a formatted write with an output function. the output is immediately stopped if the output function returns a negative value (EOF). vuprintf returns the number of characters printed.

attention: the old uprintf implementation is still there for backwards compatibility. it has a different signature than the new functions (does not return length, ouput func is void) sprintf is replaced by new new impl and the dummy snprintf is replaced by a real implementation with size check.


if you want to use them, please update msp430-libc from CVS and enjoy.
i hope that helps to make easier and more flexible outputs in your future projects.

chris


Reply via email to