VCSAgSnprintf

int VCSAgSnprintf(CHAR *dst, int size, const char *format, ...)

This primitive accepts a variable number of arguments and works like the C library function "sprintf." The difference is that this primitive takes in, as an argument, the size of the output buffer "dst." The primitive stores only a maximum of "size" number of characters in the output buffer "dst." This helps prevent buffer overflow errors. The output contained in the buffer "dst" may be truncated if the buffer is not big enough.