C-string or null-terminated string is an array of char, which ends with '\0'
I personally prefer char p[] to indicate that it is an array of char, not the pointer to single char.
For your question, most productive way will be to look if your string contains only numbers (and possibly '-' as first character)