Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 12 Jul 2009 13:09:43 +0000 (UTC)
From:      Ed Schouten <ed@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/lib/libc/stdio fread.c fwrite.c
Message-ID:  <200907121309.n6CD9sp4001828@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ed          2009-07-12 13:09:43 UTC

  FreeBSD src repository

  Modified files:
    lib/libc/stdio       fread.c fwrite.c 
  Log:
  SVN rev 195637 on 2009-07-12 13:09:43Z by ed
  
  Fix fwrite() to return 0 when size or nmemb are zero.
  
  Right now nmemb is returned when size is 0. In newer versions of the
  standards, it is explicitly required that fwrite() should return 0.
  
  Submitted by:   Christoph Mallon
  Approved by:    re (kib)
  
  Revision  Changes    Path
  1.16      +1 -3      src/lib/libc/stdio/fread.c
  1.13      +8 -1      src/lib/libc/stdio/fwrite.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200907121309.n6CD9sp4001828>