11.07.2015 Views

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

PicC 9.50 dsPIC Manual.pdf

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Library FunctionsSPRINTF, VSPRINTFSynopsis#include int sprintf (char * buf, const char * fmt, ...)#include #include int vsprintf (char * buf, const char * fmt, va_list ap)DescriptionThe sprintf() function operates in a similar fashion to printf(), except that instead of placing theconverted output on the stdout stream, the characters are placed in the buffer at buf. The resultantstring will be null terminated, and the number of characters in the buffer will be returned.The vsprintf() function is similar to sprintf() but takes a variable argument list pointer ratherthan a list of arguments. See the description of va_start() for more information on variable argumentlists.See Alsoprintf(), fprintf(), sscanf()Return ValueBoth these routines return the number of characters placed into the buffer.194

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!