Guest User

Untitled

a guest
Feb 21st, 2018
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. int print_msg2(int n)
  2. {
  3. // print("\e[H\e[J",out);
  4. int i = offset - n;
  5. if(i<0) i = WRAP - i*-1;
  6. struct line *lp = line +i;
  7. for(i=0;i<n;i++)
  8. {
  9. if(lp->msg)
  10. write(1,lp->msg,lp->len);
  11. if(lp == line +WRAP-1) lp = line;
  12. else lp++;
  13. }
  14. return 0;
  15.  
  16. }
Add Comment
Please, Sign In to add comment