
4-60 Programmer’s Manual
scnGets
Description
Initiates a scan and moves the scanner buffer’s contents to a
programmer-defined application buffer as a null-terminated
string. If the scanner buffer is empty, this function activates the
scanner to let the operator scan a bar code. This function
works with each scanner.
If there is any chance the scanned bar code
contains a binary zero, do not use this
function. Instead, use scnGetch and
scnScannerHit in a loop until the scan is
complete.
Use scnGetScannedData to retrieve the scanner buffer’s
contents without activating the scanner when the buffer is
empty.
Syntax
char far * far scnGets(char far *lpszData);
Parameters
lpszData
A pointer to a programmer-defined application
buffer where the function copies the scanner
buffer’s contents. This buffer must be one byte
longer than the largest string that you may scan.
Return Values
A pointer to the
buffer parameter
Successful.
NULL pointer
An error occurred.