Re: how to convert integer to string

From: jpd (read_the_sig_at_do.not.spam.it.invalid)
Date: 09/26/05

  • Next message: Barry Margolin: "Re: problem in reading from file"
    Date: 26 Sep 2005 21:49:45 GMT
    
    

    Begin <dh9jus$8l3$1@reader1.panix.com>
    On 2005-09-26, John Gordon <gordon@panix.com> wrote:
    > itoa() isn't a standard function. Some computers have it, and some don't.
    > Try sprintf():

    I'd recommend snprintf(), if available. (In C99, but anyway.)

    -- 
      j p d (at) d s b (dot) t u d e l f t (dot) n l .
    

  • Next message: Barry Margolin: "Re: problem in reading from file"

    Relevant Pages

    • Re: snprint rationale?
      ... >Does this mean that your sprintf implementation is broken? ... overrunning the buffer. ... I investigated the stdio implementation ... Trying to write snprintf() using this particular printf engine ...
      (comp.lang.c)
    • Re: C99 IDE for windows
      ... You need to be sure with snprintf too, ... with a buffer overrun, since it's possible to recover and retry. ... for data loss and take corrective action to ensure that no data loss ... And so you might as well use sprintf for the final ...
      (comp.lang.c)
    • Re: C99 IDE for windows
      ... Assuming you have snprintf, you get that assurance even if you call it once ... and then follow up with a call to sprintf. ...
      (comp.lang.c)
    • Re: OT - New Dell PC
      ... As with any person with a job remotely involving computers I get roped into fixing my friends' IT problems. ... Clueless people who don't even know what software they want and shouldn't be left loose on a computer or those willing to forgo administration rights altogether I recommend Linux and then log in to maintain it myself as required. ... People who are insist on running the same as everyone else in the sheep mentality I watch buy windows PCs time after time and commiserate with them later. ... I think the reason Macintosh is so good is that they have complete control over basic hardware and OS - there's hardly any need to worry about 3rd party drivers. ...
      (uk.net.web.authoring)
    • Re: C99 IDE for windows
      ... Assuming you have snprintf, you get that assurance even if you call it once ... and then follow up with a call to sprintf. ...
      (comp.lang.c)