C function to test string or integer

Hi everyone ,
Is there any predefined C function that tests whether an input is string or an integer?
Thank's in advance :slight_smile:

You can use strtol to convert the string to an integer. strtol can report on the first invalid character. No invalid characters means the entire string was an integer.

I have tried it and it works. Thank's Perderabo!!

I have tried it and it works. Thank's Perderabo!!