* Copyright (c) 1980 The Regents of the University of California.
* This module is believed to contain source code proprietary to AT&T.
* Use and redistribution is subject to the Berkeley Software License
* Agreement and your Software Agreement with AT&T (Western Electric).
static char sccsid
[] = "@(#)util.c 5.2 (Berkeley) 4/12/91";
extern short ccntrl_
, blzero_
;
if (freopen(x
->ufnm
,mode
,x
->ufd
))
if (x
->ufd
= fopen(x
->ufnm
, (*mode
=='a')? "r":"a"))
g_char(a
,alen
,b
) char *a
,*b
; ftnlen alen
;
{ char *x
=a
+alen
-1, *y
=b
+alen
-1;
while (x
>= a
&& *x
== ' ') {x
--; y
--;}
while (x
>= a
) *y
-- = *x
--;
b_char(from
, to
, tolen
) char *from
, *to
; ftnlen tolen
;
while (*from
&& i
< tolen
) {
if(ftell(f
)) return(getc(f
));