Zilog ZUSBOPTS Manual do Utilizador Página 485

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 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);
Vista de página 484
1 2 ... 480 481 482 483 484 485 486 487 488 489 490 ... 519 520

Comentários a estes Manuais

Sem comentários