X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2F__fpending.c;h=63fb7d7cc7334e1058ffb6e11c21ab2340ea3657;hb=21fe180be9b515c57817a72c90d265b77dd98e1c;hp=00ca83b6aba2dbdb38ab4ac56a356af766589236;hpb=b3467d18575fa78e0b7a86e40b74a6a86e91f630;p=gnulib.git diff --git a/lib/__fpending.c b/lib/__fpending.c index 00ca83b6a..63fb7d7cc 100644 --- a/lib/__fpending.c +++ b/lib/__fpending.c @@ -1,6 +1,30 @@ -#include -#include +/* __fpending.c -- return the number of pending output bytes on a stream + Copyright (C) 2000, 2004 Free Software Foundation, Inc. + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software Foundation, + Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ + +/* Written by Jim Meyering. */ + +#ifdef HAVE_CONFIG_H +# include +#endif + +#include "__fpending.h" + +/* Return the number of pending (aka buffered, unflushed) + bytes on the stream, FP, that is open for writing. */ size_t __fpending (FILE *fp) {