Fix description of user provided write function
[jlayton/glibc.git] / manual / stdio.texi
index e870afb16373ac7d563035487cc3201a6784c417..c58ca22b2d388188a0d46a5601637578ea98a8e5 100644 (file)
@@ -5021,7 +5021,8 @@ ssize_t @var{writer} (void *@var{cookie}, const char *@var{buffer}, size_t @var{
 This is very similar to the @code{write} function; see @ref{I/O
 Primitives}.  Your function should transfer up to @var{size} bytes from
 the buffer, and return the number of bytes written.  You can return a
-value of @code{-1} to indicate an error.
+value of @code{0} to indicate an error.  You must not return any
+negative value.
 
 You should define the function to perform seek operations on the cookie
 as: