~ubuntu-branches/ubuntu/vivid/cctools/vivid

« back to all changes in this revision

Viewing changes to dttools/src/get_line.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Hanke
  • Date: 2011-05-07 09:05:00 UTC
  • Revision ID: james.westby@ubuntu.com-20110507090500-lqpmdtwndor6e7os
Tags: upstream-3.3.2
ImportĀ upstreamĀ versionĀ 3.3.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*
 
2
Copyright (C) 2009- The University of Notre Dame
 
3
Originally written by Kevin Partington (27 January 2009)
 
4
This software is distributed under the GNU General Public License.
 
5
See the file COPYING for details.
 
6
*/
 
7
 
 
8
#ifndef __LINEREADER_H__
 
9
#define __LINEREADER_H__
 
10
 
 
11
#define LARGE_LINE_MAX 1048576
 
12
 
 
13
/** Read a line of any length from a file.
 
14
@param fp A file pointer, pointing to the beginning of the next line to be read.
 
15
@return A pointer to the line read. This should be used instead of the original buffer pointer once the function returns.
 
16
 **/
 
17
char * get_line( FILE *fp );
 
18
 
 
19
#endif