view test/simp.c @ 171:3902240d4930

*** empty log message ***
author kono
date Mon, 24 Nov 2003 20:28:19 +0900
parents d35df41eac69
children 096559f07a70
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]);
    }
    ch = 'E';
    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]);
    }
    printf("%d==1\n",alpha(ch));
}