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 Functionsprintf("xx%*d", 3, 4)yields ’xx 4’/* vprintf example */#includeinterror (char * s, ...){va_list ap;}va_start(ap, s);printf("Error: ");vprintf(s, ap);putchar(’\n’);va_end(ap);voidmain (void){int i;}i = 3;error("testing 1 2 %d", i);See Alsofprintf(), sprintf()Return ValueThe printf() and vprintf() functions return the number of characters written to stdout.178

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

Saved successfully!

Ooh no, something went wrong!