comparison test/simp.c @ 496:5640fb7a270d

more bugs...
author kono
date Thu, 22 Dec 2005 00:20:09 +0900 (2005-12-21)
parents cc1a5f764782
children 4d853ee76ad6
comparison
equal deleted inserted replaced
495:b6c10a4c0367 496:5640fb7a270d
14 int 14 int
15 main(int ac,char *av[]) 15 main(int ac,char *av[])
16 { 16 {
17 int i; 17 int i;
18 18
19 printf("#0013:%d\n",ac); 19 printf("#0018:%d\n",ac);
20 for(i=0;i<ac;i++) { 20 for(i=0;i<ac;i++) {
21 printf("#0015:%s\n",&av[i][3]); 21 printf("#0020:%s\n",&av[i][3]);
22 } 22 }
23 ch = 'E'; 23 ch = 'E';
24 main1(-8); 24 main1(-8);
25 return main0(ac,ch,av); 25 return main0(ac,ch,av);
26 } 26 }
30 int ac; 30 int ac;
31 char ch; 31 char ch;
32 char *av[]; 32 char *av[];
33 { 33 {
34 int i; 34 int i;
35 printf("#0028:%d %c\n",ac,ch); 35 printf("#0034:%d %c\n",ac,ch);
36 for(i=0;i<ac;i++) { 36 for(i=0;i<ac;i++) {
37 printf("#0030:%s\n",&av[i][3]); 37 printf("#0036:%s\n",&av[i][3]);
38 } 38 }
39 printf("#0032:%d==1\n",alpha(ch)); 39 printf("#0038:%d==1\n",alpha(ch));
40 return 0; 40 return 0;
41 } 41 }
42 42
43 void 43 void
44 main1(int l) 44 main1(int l)
45 { 45 {
46 printf("#0038:%d\n", ((l+0)<-511||(l+0)>511)); 46 printf("#0045:%d\n", ((l+0)<-511||(l+0)>511));
47 if ((l+0)<-511||(l+0)>511) printf("#0039:yes\n"); 47 if ((l+0)<-511||(l+0)>511) printf("#0046:yes\n");
48 l = -1; 48 l = -1;
49 printf("#0041:%d\n", l==-1? 555:333); 49 printf("#0048:%d\n", l==-1? 555:333);
50 } 50 }
51 51
52 52