comparison test/simp.c @ 0:d35df41eac69

Initial revision
author kono
date Thu, 13 Jan 2000 02:41:41 +0900
parents
children 096559f07a70
comparison
equal deleted inserted replaced
-1:000000000000 0:d35df41eac69
1 #include "stdio.h"
2
3 alpha(c)
4 char c;
5 {
6 return(('a'<=c&&c<='z')||('A'<=c&&c<='Z')||c=='_');
7 }
8 char ch;
9
10 main(int ac,char *av[])
11 {
12 int i;
13 printf("%d\n",ac);
14 for(i=0;i<ac;i++) {
15 printf("%s\n",av[i]);
16 }
17 ch = 'E';
18 main0(ac,ch,av);
19 }
20
21 main0(ac,ch,av)
22 int ac;
23 char ch;
24 char *av[];
25 {
26 int i;
27 printf("%d %c\n",ac,ch);
28 for(i=0;i<ac;i++) {
29 printf("%s\n",av[i]);
30 }
31 printf("%d==1\n",alpha(ch));
32 }
33