[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: small c problem



On Wed, 30 Jun 1999, Darren O. Benham wrote:

> No, well, yes.. well.. for starters, you need a buffer, not a pointer.
> rad_cmd has no space to hold "number:444".  Change it to 
> char rad_cmd[x] where x is some number that will hold the maximum size of
> the string + 1.
> 
> Then you can do...
> 
> sprintf( rad_cmd, "number:%u", freq_num );

Thanks.. worked perfectly.. I need to do more C work.. but, now I have a
program about ready to release. :)

                     Michael Beattie (mike@omnic.dhis.org)

 -----------------------------------------------------------------------------
           If at first you don't succeed, you must be using Windows.
 -----------------------------------------------------------------------------
                Debian GNU/Linux....  Ooohh You are missing out!



Reply to: