view test/simp.c @ 151:81032a1b8a5d

MIPS continue
author kono
date Mon, 14 Jul 2003 14:40:35 +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));
}