I need to know if the very first character each line of a .TXT file is a int (from 0 to 9)?
In the following code i think the program give me the first character, but how do I know if it is a integer?
Thanks in advance.Code:
sscanf(file, "%d, &x);
if (file == "%*[^0-9]%d")