This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

I want to convert a long integer to a string.


     Hello,
     my name is Joel.
     I am working under a Linux environment, and I want to convert a long int into a string. It looks doesnt't have a function such ltoa on stdlib.
    How Can I do that?
    I tried to work with double numbers, and convert them using fcvt function included into stdlib, but after compiled, when I run the job, I got an error:
Segmentation Error (core dumped).
   I don't know what to do!
  Please help me.
  Thank you for while.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]