Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c string is int

int isNumber(char s[])
{
    for (int i = 0; s[i]!= ''; i++)
    {
        if (isdigit(s[i]) == 0)
              return 0;
    }
    return 1;
}
 
PREVIOUS NEXT
Tagged: #string #int
ADD COMMENT
Topic
Name
1+5 =