2 * LEVEE, or Captain Video; A vi clone
4 * Copyright (c) 1982-1997 David L Parsons
7 * Redistribution and use in source and binary forms are permitted
8 * provided that the above copyright notice and this paragraph are
9 * duplicated in all such forms and that any documentation,
10 * advertising materials, and other materials related to such
11 * distribution and use acknowledge that the software was developed
12 * by David L Parsons (orc@pell.chi.il.us). My name may not be used
13 * to endorse or promote products derived from this software without
14 * specific prior written permission. THIS SOFTWARE IS PROVIDED
15 * AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
16 * WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND
17 * FITNESS FOR A PARTICULAR PURPOSE.
25 moveleft(src
,dest
,length
)
39 moveright(src
,dest
,length
)
40 register char *src
,*dest
;
54 fillchar(src
,length
,ch
)
55 register char *src
,ch
;
65 scan(length
,tst
,ch
,src
)
77 for(l
= ((int)inc
)*length
; l
> 0; l
--,src
+= (long)inc
)
82 for(l
= ((int)inc
)*length
; l
> 0; l
--,src
+= (long)inc
)
86 return length
-(inc
*l
);