Data update
This commit is contained in:
parent
0df55f9f24
commit
aec8ed51b6
1045 changed files with 18889 additions and 2777 deletions
|
|
@ -1,10 +1,12 @@
|
|||
#include <ctype.h>
|
||||
#include <stdbool.h>
|
||||
#include <stdlib.h>
|
||||
int isNumeric (const char * s)
|
||||
{
|
||||
if (s == NULL || *s == '\0' || isspace(*s))
|
||||
return 0;
|
||||
char * p;
|
||||
strtod (s, &p);
|
||||
|
||||
bool isNumeric(const char *s) {
|
||||
if (s == NULL || *s == '\0' || isspace(*s)) {
|
||||
return false;
|
||||
}
|
||||
char *p;
|
||||
strtod(s, &p);
|
||||
return *p == '\0';
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue