view test/simp.c @ 442:86b04fb4562e

minor fix...
author kono
date Sun, 21 Nov 2004 00:42:42 +0900
parents 0c256ea2a97e
children 8bec605d1701
line wrap: on
line source

#include "stdio.h"

alpha(c)
char c;
{
     return(('a'<=c&&c<='z')||('A'<=c&&c<='Z')||c=='_');
}
char ch;

main(int ac,char *av[]) 
{
    int i;

    printf("#0013:%d\n",ac);
    for(i=0;i<ac;i++) {
	printf("#0015:%s\n",&av[i][3]);
    }
    ch = 'E';
    main1(-8);
    return main0(ac,ch,av);
}

main0(ac,ch,av) 
int ac;
char ch;
char *av[];
{
    int i;
    printf("#0027:%d %c\n",ac,ch);
    for(i=0;i<ac;i++) {
	printf("#0029:%s\n",&av[i][3]);
    }
    printf("#0031:%d==1\n",alpha(ch));
    return 0;
}

main1(int l)
{
   printf("%d\n", ((l+0)<-511||(l+0)>511));
   if ((l+0)<-511||(l+0)>511) printf("yes\n");
   l = -1;
   printf("%d\n", l==-1? 555:333);
}