SCDefaultScannerName(3)

SCDefaultScannerName - Getting the default scanner name

As shipped in IRIX 6.5.19. Unchanged since IRIX 6.5.

NAME
     SCDefaultScannerName - Getting the default scanner name

SYNOPSIS
     #include <stdio.h>
     #include <scanner.h>

     char *SCDefaultScannerName(void);

DESCRIPTION
     SCDefaultScannerName 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 VALUE
     SCDefaultScannerName 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 ALSO
     libscan(3), SCOpen(3), SCGetScanEnt(3), scanners(1M).