Borland and VC++ have it

This is a discussion on Borland and VC++ have it within the Linux Programming forums, part of the Platform Specific Boards category; I'm looking for the equivelent of : char * ltoa ( long value, char * buffer, int radix ); in ...

  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
    B26354 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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21