ARPDAS_QNX6 1.0
|
00001 /* cicf.c defines ci_sendfcmd() */ 00002 #include <stdarg.h> 00003 #include "nortlib.h" 00004 #include "cmdalgo.h" 00005 char rcsid_cicf_c[] = 00006 "$Header: /cvsroot/arp-das/QNX6/tmlib/src/cicf.c,v 1.2 2009/10/05 01:46:40 ntallen Exp $"; 00007 00008 int ci_sendfcmd(int mode, const char *fmt, ...) { 00009 va_list arg; 00010 char cmdbuf[CMD_INTERP_MAX]; 00011 00012 va_start(arg, fmt); 00013 vsprintf(cmdbuf, fmt, arg); 00014 va_end(arg); 00015 return(ci_sendcmd(cmdbuf, mode)); 00016 } 00017 00018 /* 00019 =Name ci_sendfcmd(): Send formatted command to Command Server 00020 =Subject Command Server and Client 00021 =Synopsis 00022 00023 #include "nortlib.h" 00024 #include "cmdalgo.h" 00025 int ci_sendfcmd(int mode, char *fmt, ...); 00026 00027 =Description 00028 00029 ci_sendfcmd() performs the same function as =ci_sendcmd=(), 00030 but it allows printf()-style formatting in order to send 00031 variable commands. 00032 00033 =Returns 00034 00035 The same return values as =ci_sendcmd=(). 00036 00037 =SeeAlso 00038 =Command Server and Client= functions. 00039 00040 =End 00041 */