Mercurial > hg > Members > nobuyasu > CbC
view automaton/test.c @ 24:5354e0f8f557 draft
add unbalance_binary_tree.c
author | Nobuyasu Oshiro <dimolto@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Mon, 13 Aug 2012 03:59:25 +0900 |
parents | 4e98faa1d831 |
children |
line wrap: on
line source
#include <stdio.h> int main(int argc, char *argv[]) { long size = sizeof(argv[1])/sizeof(char); char *c = argv[0]; printf("argv[0] = %s\n",argv[0]); printf("size = %ld\n",size); long i; for(i=0; i<size; i++,c++) { printf("%c",*c); } int s = strlen(argv[0]); // long s = sizeof(char); printf("s = %d\n",s); return 0; }