home *** CD-ROM | disk | FTP | other *** search
/ Amiga Elysian Archive / AmigaElysianArchive.iso / wp_dtp / atap.lha / ATAP / SourceCode / LongtoString.c < prev    next >
Text File  |  1992-06-13  |  308b  |  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.