From c6deb7aeab5953176c56cba6fddb22f84d24d1c0 Mon Sep 17 00:00:00 2001 From: Henning Geinitz Date: Wed, 9 May 2001 17:58:06 +0000 Subject: [PATCH] Clarified the paragraph concerning sane_read If *len != 0 the status must be SANE_STATUS_GOOD. --- sane.tex | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/sane.tex b/sane.tex index bf78cc8..65b525b 100644 --- a/sane.tex +++ b/sane.tex @@ -1487,10 +1487,9 @@ This function is used to read image data from the device represented by handle \code{h}. Argument \code{buf} is a pointer to a memory area that is at least \code{maxlen} bytes long. The number of bytes returned is stored in \code{*len}. A backend must set this to zero -when the call fails (i.e., when a status other than -\code{SANE\_STA\-TUS\_GOOD} is returned). When the call succeeds, the -number of bytes returned can be anywhere in the range from 0 to -\code{maxlen} bytes. +when a status other than \code{SANE\_STA\-TUS\_GOOD} is returned. +When the call succeeds, the number of bytes returned can be anywhere in +the range from 0 to \code{maxlen} bytes. \begin{quote}\index{sane\_read} \begin{verbatim} SANE_Status sane_read (SANE_Handle h, SANE_Byte * buf,