char *s is the buffer to receive the formatted string.
int n is the maximum number of bytes allowed to be copied.
register char *fmt is the format string. The function handles only %d and %s strings. This function does not handle any width or precision strings.
va_list args is an STD argument variable obtained from a previous call to va_start.