I currently have a problem converting strings to longs. I tried atol, strtol, strtoul. Only atoi seems to work.
sprintf longs using %lu does not seem to work, but ltoa does.
To test these functions, I use something like
LCD_WriteString(returnBuffer, 5, 0, 1);
userID = atol(returnBuffer);
// userID = (long) 30010; // test if ltoa/sprintf works
ltoa(userID, returnBuffer, 10);
LCD_WriteString(returnBuffer, 6, 0, 1);
The LCD values are not the same. First display is correct, but second only shows "0".