X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=lib%2F__fpending.c;h=221aee69de9f7b1f72db2d0a9a88512ad16d926b;hb=f213651e6fa01f6a6ea19c0c6f71124d41035213;hp=00ca83b6aba2dbdb38ab4ac56a356af766589236;hpb=b3467d18575fa78e0b7a86e40b74a6a86e91f630;p=gnulib.git diff --git a/lib/__fpending.c b/lib/__fpending.c index 00ca83b6a..221aee69d 100644 --- a/lib/__fpending.c +++ b/lib/__fpending.c @@ -1,6 +1,28 @@ -#include -#include +/* __fpending.c -- return the number of pending output bytes on a stream + Copyright (C) 2000, 2004, 2006 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. */ + +#include + +#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) {