curl-library
Re: write callback issues (was Re: A new problem)
From: Prasad J Pandit <prasad.pandit_at_comat.com>
Date: Thu, 10 Apr 2008 13:43:16 +0530 (IST)
Date: Thu, 10 Apr 2008 13:43:16 +0530 (IST)
On Thu, 10 Apr 2008, Linus Nielsen Feltzing wrote:
> Ouch! That's not the right way to do it. Here's a better way:
>
> char msg[1024];
> int i;
> ...
> for(i = 0;i < [length-of-data];i++) {
> _snprintf (&msg[i*2], sizeof (msg)-i*2-1, "%02X", (*(Curldata
> **)usrp)->data[i]));
> }
Okay, will try this.
Thanks!
-- Regards - PrasadReceived on 2008-04-10