leafnode  1.12.0
About: Leafnode is a store & forward NNTP proxy for small (dialup) sites.
  Fossies Dox: leafnode-1.12.0.tar.xz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

getline.h
Go to the documentation of this file.
1/*
2 getaline - fetch a single line from a stdio stream, arbitrary length
3 Copyright (C) 2000 - 2002 Matthias Andree
4
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version.
9
10 As special permission, when linked against the leafnode package,
11 leafnode programs themselves need not be put under the GPL.
12
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
17
18 You should have received a copy of the GNU General Public License
19 along with this program; if not, write to the Free Software
20 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21*/
22
23#ifndef GETLINE_H
24#define GETLINE_H
25
26#include <sys/types.h>
27#include "config.h"
28
29/* from getline.c */
30#ifndef HAVE_GETLINE
31ssize_t getline(char **, size_t *, FILE *); /* fgets replacement */
32#endif
33ssize_t _getline(char *to, size_t size, FILE * stream);
34
35#endif
ssize_t _getline(char *to, size_t size, FILE *stream)
Definition: getline.c:28
ssize_t getline(char **, size_t *, FILE *)
Definition: getline.c:54