home *** CD-ROM | disk | FTP | other *** search
/ Fresh Fish 1 / FFMCD01.bin / bbs / libdisks / d600t699 / disk680.lha / ATAP / SourceCode / LongtoString.c < prev    next >
Encoding:
Text File  |  1992-06-14  |  308 b   |  16 lines

  1. /* Routine converts long integers to strings using the ingenious
  2.    sprintf() and sscanf() functions. */
  3.  
  4. LongtoString(value,outString)
  5.  
  6. long    value;
  7. char    *outString;
  8.  
  9. {
  10. static    char    storage[14];    /* enough room for 10 digits plus '-' sign */
  11.  
  12.     sprintf(storage,"%ld\0",value);
  13.     outString=storage;
  14.     return(0);
  15. }
  16.