Mercurial > hg > CbC > old > device
view test/simp.c @ 0:d35df41eac69
Initial revision
author | kono |
---|---|
date | Thu, 13 Jan 2000 02:41:41 +0900 |
parents | |
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)); }