Determines whether the cardholder is over 21 years old, based on the encoded data elements.
#include "ltbar.h"
L_LTBAR_API L_INT L_BarCodeAAMVAIDOver21(pId, pszCurrentDate, bOver21)
Pointer to the AAMVAID.
Pointer to the current date in yyyyMMdd format.
Pointer to a variable to be updated with the value indicating the cardholder is over 21 years old.
Possible values are:
Value | Meaning |
---|---|
L_TRUE | The cardholder is over 21 years old. |
L_FALSE | The cardholder is below 21 years old. |
Value | Meaning |
---|---|
SUCCESS | The function was successful. |
< 1 | An error occurred. Refer to Return Codes. |
Acquisition of current date string left up to user.
Win32, x64, Linux.
For an example, refer to L_BarCodeParseAAMVAData