Question : c string is int
Answered by : distinct-dog-4jhsfbxh3ii1
int isNumber(char s[])
{ for (int i = 0; s[i]!= '\0'; i++) { if (isdigit(s[i]) == 0) return 0; } return 1;
}
Source : | Last Update : Sun, 01 Nov 20
Question : check if string in string c
Answered by : adventurous-albatross
if(strstr(sent, word) != NULL) { /* ... */
}
Source : | Last Update : Sun, 01 Mar 20