xref: /csrg-svn/usr.bin/pascal/libpc/READLN.c (revision 40865)
1*40865Sbostic /*-
2*40865Sbostic  * Copyright (c) 1979 The Regents of the University of California.
3*40865Sbostic  * All rights reserved.
4*40865Sbostic  *
5*40865Sbostic  * %sccs.include.redist.c%
6*40865Sbostic  */
71683Smckusick 
8*40865Sbostic #ifndef lint
9*40865Sbostic static char sccsid[] = "@(#)READLN.c	1.5 (Berkeley) 04/09/90";
10*40865Sbostic #endif /* not lint */
111683Smckusick 
121683Smckusick #include "h00vars.h"
131683Smckusick 
141683Smckusick READLN(curfile)
151683Smckusick 
161683Smckusick 	register struct iorec	*curfile;
171683Smckusick {
182233Smckusic 	do	{
192233Smckusic 		IOSYNC(curfile);
202233Smckusic 		curfile->funit |= SYNC;
212233Smckusic 	} while ((curfile->funit & EOLN) == 0);
221683Smckusick }
23