Hello! Please give an example of the code that displays the value of the variable on the screen __os_snprintf

char buffer[255];
__os_snprintf(buffer, 255, "format string", variable1, variable2, etc);
somehow_print_string(buffer);

#define SERVER_VERSION "01/14/2017"
#define ERROR_BUFFER_SIZE 100
#define COMMAND_BYTE 0xFF
void reportIllegalCommandByte() {
char errorBuffer[ERROR_BUFFER_SIZE];
__os_snprintf(errorBuffer, ERROR_BUFFER_SIZE, "Illegal command byte received: %i\nServer Version: %s", COMMAND_BYTE, SERVER_VERSION);
OSFatal(errorBuffer);
}
Illegal command byte received: 255
Server Version: 01/14/2017