D&C Lug - Home Page
Devon & Cornwall Linux Users' Group

[ Date Index ][ Thread Index ]
[ <= Previous by date / thread ] [ Next by date / thread => ]

Re: [LUG] c printf question



On 09.01.2004 12:24 Theo P. Zourzouvillys wrote:
On Friday 09 January 2004 12:02 pm, mike@xxxxxxxxxxxxx wrote:
sprintf (Temp, "%s-[%*s]->%s", Connection->x25.LocalDTE, Done->xi_len,
Done->xi_buf, Connection->x25.RemoteDTE) ;

this means the length of the string is limited to the next argument on the 
stack.

so it's printing Done->xi_len bytes of Done->xi_buf.

 ~ Theo


Thanks Theo (and others) for that...

I've been away, that's why the long delay.
In trying this and experimenting its seems to me that, it does reduce the length of 
the field, it pads the length
of the field to a minimum size.


Lynx friendly