home *** CD-ROM | disk | FTP | other *** search
- #include "stdio.h"
-
- main(a_c,a_v)
- int a_c;
- char **a_v;
- {
- long i,c,wait;
-
- if(a_c < 2)
- {
- wait=3;
- }
- else
- {
- wait=abs(atoi(a_v[1]));
- }
-
- c=time(NULL); /* Get seconds */
-
- do {
- i=time(NULL); /* Get again */
- }
- while(i <= c+wait); /* While below first get */
- } if(col < 0){
- col=0;}
- break;
- case 13:printf("\n"); /* Return and clear */
- for(i=0;i<=80;++i){
- ch[i]=0;}col=0;break;
- }
- if(ch[col] >31 && ch[col]<128) /* Is it a valid character ? */
- {
- printf("%c",ch[col]); /* If so print it */
- ++col;
- }
- if(col == 78) { wrap(col); } /* Wrap at line 78 */
- }
- }
- }
-
- wrap()
- {
- int i,pos=0;
- for(i=78;i>=0;--i) /* Find 1st space in buffer */
- {
- if(ch[i] == 32)
- {
- pos=i+1;
-
- for(i=78;i>=pos;--i) /* Go back to it */
-