Composes a string with the same text that would be printed if format was used on printf, but using the elements in the variable argument list identified by arg instead of additional function arguments and storing the resulting content as a C string in the buffer pointed by s (taking n as the maximum buffer capacity to fill).Syntax:
int vsnprintf (char * s, size_t n, const char * format, va_list arg );Example:
void PrintFError ( const char * format, ... )
va_start (args, format);
vsnprintf (buffer,256,format, args);
int main ()
FILE * pFile;
pFile = fopen (szFileName,"r");
if (pFile == NULL)
PrintFError ("Error opening '%s'",szFileName);
// file successfully open
All information of this service is derived from the free sources and is provided solely in the form of quotations.
This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 130 / 158733668. Delta: 0.00139 с