suppose char array being "-123.456" then the method confirms it is a number, and if the array is "45fg" then the method confirms it is not a number, is there a method to do this ??
As far as I know there is no one means in the C library to determine of a C-string contains a number because of the sign and decimal point.
I'd write a function to check each element if it were a '+', '-' or '.' and then check the element isdigit(). If any element should fail either test then the C-string contains something other than a 'pure' number.