SCDEFAULTSCANNERNAME(3) Impressario SCDEFAULTSCANNERNAME(3)NAMESCDefaultScannerName - Getting the default scanner name
SYNOPSIS
#include <stdio.h>
#include <scanner.h>
char *SCDefaultScannerName(void);
DESCRIPTIONSCDefaultScannerName returns the name of the system default scanner; that
is, the name of the scanner that would be opened if SCOpen(3) were to be
passed a scanner name of NULL. If there is no default scanner,
SCDefaultScannerName returns NULL. In this case, SCOpen will open the
first scanner described in /usr/lib/scan/scanners if it is passed a
scanner name of NULL.
RETURN VALUESCDefaultScannerName returns the name of the system default scanner if
one has been set; otherwise NULL is returned.
WARNING
The return value of SCDefaultScannerName points to memory owned by
libscan(3). The calling program should not modify the memory pointed to
by the return value of SCDefaultScannerName, nor should any assumptions
be made about its value after subsequent calls to SCDefaultScannerName.
Any needed information should be copied into program memory before
calling SCDefaultScannerName again.
SEE ALSOlibscan(3), SCOpen(3), SCGetScanEnt(3), scanners(1M).
Page 1