view test/simp.c @ 172:096559f07a70

some check
author kono
date Tue, 25 Nov 2003 11:47:41 +0900
parents d35df41eac69
children 0c256ea2a97e
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("%d\n",ac);
    for(i=0;i<ac;i++) {
	printf("%s\n",&av[i][3]);
    }
    ch = 'E';
    return main0(ac,ch,av);
}

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