Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int print_msg2(int n)
- {
- // print("\e[H\e[J",out);
- int i = offset - n;
- if(i<0) i = WRAP - i*-1;
- struct line *lp = line +i;
- for(i=0;i<n;i++)
- {
- if(lp->msg)
- write(1,lp->msg,lp->len);
- if(lp == line +WRAP-1) lp = line;
- else lp++;
- }
- return 0;
- }
Add Comment
Please, Sign In to add comment