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


Thank's Theo,

That's what I thought, but wanted to be sure.

--
'ooroo

Mike...(:)-)
---------------------------------------------------
Email: mike@xxxxxxxxxxxxx        o
You need only two tools.        o /////
A hammer and duct tape. If it    /@   `\  /) ~
doesn't move and it should use  >  (O)  X<  ~  Fish!!
the hammer. If it moves and      `\___/'  \) ~
shouldn't, use the tape.           \\\
---------------------------------------------------

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


Lynx friendly