OSDN Git Service
(root)
/
zither
/
ds-zither.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
addid library source 20140221
[zither/ds-zither.git]
/
libms
/
ch_int2.c
1
// ch_int2.c
2
// $Id: $
3
// masashi shimakura
4
5
6
#include<stdio.h>
7
#include<string.h>
8
#include<ctype.h>
9
10
11
12
/* -------------- CH_INT -------------- */
13
int ch_int2(char * data)
14
{
15
int count;
16
int ret = 0;
17
int max = (int)strlen(data);
18
19
for(count = 0; count < max; count++){
20
if(0 == isdigit((int)data[count])){
21
ret = -1;
22
break;
23
}
24
}
25
26
return ret;
27
}
28
29
30
31
32