Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include "ams.h"
- void main()
- {
- char inbuff[80] = {0};
- char writeBuf[132] = {0};
- IO_CTRL *sysprintIoc = openOutputAssert("SYSPRINT", 132, 132, dcbrecf + dcbrecbr);
- IO_CTRL *inIoc = openInputAssert("IN", 80, 80, dcbrecf);
- while (0 == readSync(inIoc, inbuff))
- {
- memset(writeBuf, ' ', 132);
- memcpy(writeBuf, inbuff, 80);
- writeSync(sysprintIoc, writeBuf);
- }
- closeAssert(sysprintIoc);
- closeAssert(inIoc);
- }
Add Comment
Please, Sign In to add comment