📜  c string is int - C 编程语言代码示例

📅  最后修改于: 2022-03-11 15:04:43.109000             🧑  作者: Mango

代码示例1
int isNumber(char s[])
{
    for (int i = 0; s[i]!= '\0'; i++)
    {
        if (isdigit(s[i]) == 0)
              return 0;
    }
    return 1;
}