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

  1. #include "HyperXCmd.h"
  2.  
  3. /* Convert a string of ASCII decimal digits to an unsigned long integer.
  4.  */
  5. pascal long
  6. StrToLong(paramPtr, strPtr)
  7. register XCmdBlockPtr    paramPtr;
  8. Str31    strPtr;
  9. {
  10.     paramPtr->inArgs[0] = (long)strPtr;
  11.     paramPtr->request = xreqStrToLong;
  12.     (*paramPtr->entryPoint)();
  13.     return (long)paramPtr->outArgs[0];
  14. }
  15.