home *** CD-ROM | disk | FTP | other *** search
/ Garbo / Garbo.cdr / mac / source / piemnsrc.sit / NumToStr.c < prev    next >
C/C++ Source or Header  |  1989-09-14  |  434b  |  18 lines

  1. #include "HyperXCmd.h"
  2.  
  3. /*  Convert a signed long integer to a Pascal string.  Instead of 
  4.     returning a new string, as Pascal does, it expects you to 
  5.     create mystr and pass it in to be filled.
  6.  */
  7. pascal void
  8. NumToStr(paramPtr,num,mystr)
  9. register XCmdBlockPtr    paramPtr;
  10. long             num;
  11. Str31    mystr;
  12. {
  13.     paramPtr->inArgs[0] = num;
  14.     paramPtr->inArgs[1] = (long)mystr;
  15.     paramPtr->request = xreqNumToStr;
  16.     (*paramPtr->entryPoint)();
  17. }
  18.