char *s is the buffer to receive the formatted string.
char *fmt is the format string. The function handles only %d and %s strings. It does not handle any width or precision strings.
... represents a sequence of parameters for the printf function.