s c n G e t s
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.
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
Return Values
A pointer to the
buffer parameter
NULL pointer
4-60
Programmer's Manual
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
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.
Successful.
An error occurred.
complete.