/* Copyright (C) Magna Carta Software, Inc. 1990. All Rights Reserved C COMMUNICATIONS TOOLKIT CPRINTF.C -- Formatted string output to a serial port. */ #include #include /* C_PRINTF -- A serial port version of printf. Format the string "fs" and write it to the specified COMM PORT. */ short CDECL_ c_printf(COMM_PORT *p, char *fs,...) { char sbuf[256]; va_list argptr; va_start(argptr,fs); vsprintf(sbuf,fs,argptr); va_end(argptr); return (c_puts(p, sbuf)); }