Horje
check if string is number c Code Example
c string is int
int isNumber(char s[])
{
    for (int i = 0; s[i]!= '\0'; i++)
    {
        if (isdigit(s[i]) == 0)
              return 0;
    }
    return 1;
}
check if string is number c
#include <stdio.h>
#include <ctype.h>
int main(void){
	char liste[] = "axxg34d2e82";
	int status = 0;
	for(int i=0;liste[i]!='\0';i++)
	{
		if (status==1){break;}
		while(isdigit(liste[i])){
			printf("%c", liste[i]);
			
			if(isdigit(liste[i+1])){
				status = 1;
			}
			i++;
		}
	}
	
	return 0;
}




C

Related
how to zoom in terminal Code Example how to zoom in terminal Code Example
fibonacchi series in c Code Example fibonacchi series in c Code Example
sieve of eratosthenes c Code Example sieve of eratosthenes c Code Example
C program to check whether character is lowercase or not using ASCII values Code Example C program to check whether character is lowercase or not using ASCII values Code Example
pointers c Code Example pointers c Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
7