Mercurial > hg > Papers > 2021 > anatofuz-master
view paper/src/cbc_example_test.c @ 158:d2be76d48b00 default tip
update
author | anatofuz <anatofuz@cr.ie.u-ryukyu.ac.jp> |
---|---|
date | Wed, 17 Feb 2021 14:37:21 +0900 |
parents | f431abfba3b2 |
children |
line wrap: on
line source
extern int printf(const char*,...); typedef struct test { int number; char* string; } TEST; void codegear1(TEST); void codegear2(TEST); void codegear3(TEST); void codegear1(TEST testin){ TEST testout; testout.number = testin.number + 1; testout.string = testin.string; codegear2(testout); } void codegear2(TEST testin){ TEST testout; testout.number = testin.number; testout.string = "Hello"; codegear3(testout); } void codegear3(TEST testin){ printf("number = %d\t string= %s\n",testin.number,testin.string); exit(0); } int main(){ TEST test = {0,0}; codegear1(test); }