/* 
 * Thomas Pantzer: readln.h, Version: v0.1a  16.02.2000 18:02 
 * 
 * 
 * Copyright 2000 by Thomas Pantzer
 * 
 * Permission to use, copy, modify, and distribute this software for noncommercial 
 * use and without fee is hereby granted, provided that the above copyright notice 
 * appear in all copies and that both that copyright notice and this permission 
 * notice appear in supporting documentation, and that the name of the Author not be 
 * used in advertising or publicity pertaining to distribution of the software 
 * without specific, written prior permission. The Author makes no representations about
 * the suitability of this software for any purpose.  It is provided "as is" 
 * without expressed or implied warranty. 
 * 
 * 
 * pantec@zorro.informatik.uni-leipzig.de   (Thomas Pantzer) 
 * 
 */








#ifndef _READLN_H
#define _READLN_H



class t_buffer {
public:
	long int filelen,lines,lshifts,fsize;

	char Init(char *fn, int bs);
	char *ReadLn(void);
	long int Pos(void);
	void Done(void);	
private:
	int fd,bufsize;
	long int offs,eot,rd;
	char fend;
	char *buffer;
};




#endif
