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 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

-- 
Theo Zourzouvillys
<theo@xxxxxxxxxxxxxxxx>
<http://theo.me.uk/>


--
The Mailing List for the Devon & Cornwall LUG
Mail majordomo@xxxxxxxxxxxx with "unsubscribe list" in the
message body to unsubscribe.


Lynx friendly