view test/simp.c @ 468:464e7480395c

*** empty log message ***
author kono
date Sat, 30 Jul 2005 16:22:00 +0900
parents 8bec605d1701
children cc1a5f764782
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("#0028:%d %c\n",ac,ch);
    for(i=0;i<ac;i++) {
	printf("#0030:%s\n",&av[i][3]);
    }
    printf("#0032:%d==1\n",alpha(ch));
    return 0;
}

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