sscanf
Use
MQLONG SBCSprt; sscanf(line, "SBCSprt);Do not useMQLONG SBCSprt; sscanf(line, "SBCSprt);
%ld tries to put an eight byte type into a four byte type; only use %l if you are dealing with an actual long data type. MQLONG, UINT32 and INT32 are defined to be four bytes, the same as an int on all WebSphere MQ platforms:
Parent topic:
Coding considerations on Windows
fg19510_