Guest User

Untitled

a guest
Jan 22nd, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include "ams.h"
  2. void main()
  3. {
  4. char inbuff[80] = {0};
  5. char writeBuf[132] = {0};
  6.  
  7. IO_CTRL *sysprintIoc = openOutputAssert("SYSPRINT", 132, 132, dcbrecf + dcbrecbr);
  8. IO_CTRL *inIoc = openInputAssert("IN", 80, 80, dcbrecf);
  9.  
  10. while (0 == readSync(inIoc, inbuff))
  11. {
  12. memset(writeBuf, ' ', 132);
  13. memcpy(writeBuf, inbuff, 80);
  14. writeSync(sysprintIoc, writeBuf);
  15. }
  16.  
  17. closeAssert(sysprintIoc);
  18. closeAssert(inIoc);
  19. }
Add Comment
Please, Sign In to add comment