Thread: Borland and VC++ have it

  1. #1
    Something Clever ginoitalo's Avatar
    Join Date
    Dec 2001
    Posts
    187

    Borland and VC++ have it

    I'm looking for the equivelent of :

    char * ltoa ( long value, char * buffer, int radix );

    in linux (well AIXC)....(my work place's server)

    I know it may be the compiler and not the OS,

    or how can i find the equivelent ?

    Thanks

  2. #2
    The Artful Lurker Deckard's Avatar
    Join Date
    Jan 2002
    Posts
    633
    Hello,

    If you would like to get a numeric value into a string, try sprintf:
    Code:
    sprintf( my_string, "%d", my_number );
    HTH
    Jason Deckard

Popular pages Recent additions subscribe to a feed