"Fossies" - the Fresh Open Source Software Archive

Member "leafnode-1.12.0/getline.h" (30 Jan 2009, 1243 Bytes) of package /linux/misc/leafnode-1.12.0.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "getline.h" see the Fossies "Dox" file reference documentation.

    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
   31 ssize_t getline(char **, size_t *, FILE *); /* fgets replacement */
   32 #endif
   33 ssize_t _getline(char *to, size_t size, FILE * stream);
   34 
   35 #endif