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.

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

Successful.

buffer parameter

 

NULL pointer

An error occurred.

4-60 Programmer’s Manual

Page 96
Image 96
Paxar Gold 6037EX manual N G e t s