The getPattern() function returns a pattern string consisting of zeros and ones which represent the bars and spaces of the barcode. For the 4-State clocked codes the Pattern string consists of the characters “0”, “1”, “2” and “3”, representing the four bar types present in these codes (short, long up, long down, and long both).
Declaration
char * getPattern();
The function returns a pointer to a buffer containing the Pattern string. The length of the null-terminated C string contained in this buffer should be determined before copying the data from the string. The internal buffer is declared as char buf[2000];