Zilog ZUSBOPTS Manuale Utente Pagina 485

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 484
UM017105-0511 Standard Functions
Zilog Developer Studio II – ZNEO™
User Manual
457
vsprintf
Equivalent to sprintf, with the variable argument list replaced by arg, which has been
initialized by the
va_start macro (and possibly subsequent va_arg calls). The
vsprintf function does not invoke the va_end function.
Synopsis
#include <stdarg.h>
#include <stdio.h>
int vsprintf(char *s, const char *format, va_list arg);
Returns
The number of characters written in the array, not counting the terminating null character.
Example
va_list va;
char buf[80];
/*initialize the variable argument va here*/
vsprint(buf, "%d %d %d",va);
Vedere la pagina 484
1 2 ... 480 481 482 483 484 485 486 487 488 489 490 ... 519 520

Commenti su questo manuale

Nessun commento