Advertisement
arinto

IntervalPrinting.c

May 27th, 2012
3,384
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.19 KB | None | 0 0
  1. #include<stdio.h>
  2. #include<unistd.h>
  3.  
  4. int main(void)
  5. {
  6.         int ctr = 0;
  7.         while(1){
  8.                 usleep(100000);
  9.                 printf("line #%d\r", ++ctr);
  10.         }
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement