SCAbort(3) Impressario SCAbort(3)NAMESCAbort - abort the current scan
SYNOPSIS
#include <stdio.h>
#include <scanner.h>
int SCAbort(SCANNER *s);
DESCRIPTIONSCAbort causes the current scan to stop immediately (or as soon as
possible). Any data buffered by the scanner driver is discarded.
RETURN VALUESCAbort returns 0 if successful, or it returns -1 and sets SCerrno if an
error occurs. It is an error to call SCAbort if a scan is not in
progress.
EXECUTION ERROR CODESSCAbort will fail under the following circumstances.
SCEDEV Scanner driver error
SCECOMM Error communicating with scanner driver
SCENOTSCANNING Not currently scanning
SEE ALSOlibscan(3), SCOpen(3), SCScan(3).
Page 1