home *** CD-ROM | disk | FTP | other *** search
- #include <A4Stuff.h>
- #include <Memory.h>
- #include <HyperXCmd.h>
- #include <string.h>
-
- char * crypt();
-
- pascal void main(XCmdPtr paramPtr)
- {
- char * result;
- long int oldA4;
-
- if (paramPtr->paramCount != 2) {
- result = "Wrong # of arguments to crypt()";
-
- goto done;
- }
- oldA4 = SetCurrentA4();
- HLock(paramPtr->params[0]);
- HLock(paramPtr->params[1]);
- result = crypt(*paramPtr->params[0], *paramPtr->params[1]);
- HUnlock(paramPtr->params[0]);
- HUnlock(paramPtr->params[1]);
- SetA4(oldA4);
- done:
- PtrToHand(result, ¶mPtr->returnValue, strlen(result) + 1);
- }
-
-
-
-