ixp_print.3 (1172B)
1 .TH "IXP_PRINT" 3 "2010 Jun" "libixp Manual" 2 3 .SH NAME 4 .P 5 ixp_print, ixp_vprint, ixp_vsmprint 6 7 .SH SYNOPSIS 8 .nf 9 #include <ixp.h> 10 11 int ixp_print(IxpCFid *fid, const char *fmt, ...); 12 13 int ixp_vprint(IxpCFid *fid, const char *fmt, va_list args); 14 15 char* (*ixp_vsmprint)(const char *fmt, va_list); 16 .fi 17 18 .SH PARAMETERS 19 .TP 20 fid 21 An open IxpCFid to which to write the result. 22 .TP 23 fmt 24 The string with which to format the data. 25 .TP 26 args 27 A va_list holding the arguments to the format 28 string. 29 .TP 30 .RB ... 31 The arguments to the format string. 32 33 .SH DESCRIPTION 34 .P 35 These functions act like the standard formatted IO 36 functions. They write the result of the formatting to the 37 file pointed to by C<fid>. 38 39 .P 40 \fBixp_vsmprint(3)\fR may be set to a function which will 41 format its arguments and return a nul\-terminated string 42 allocated by malloc(3). The default formats its arguments as 43 printf(3). 44 45 .SH RETURN VALUE 46 .P 47 These functions return the number of bytes written. 48 There is currently no way to detect failure. 49 50 .SH SEE ALSO 51 .P 52 ixp_mount(3), ixp_open(3), printf(3) 53 54 55 .\" man code generated by txt2tags 2.5 (http://txt2tags.sf.net) 56 .\" cmdline: txt2tags -o- ixp_print.man3 57