Mercurial > hg > CbC > old > device
view test/cloop.c @ 927:b491db049d74
Added tag current-release for changeset 4e73a22327a8
author | kono |
---|---|
date | Sun, 13 Apr 2014 10:20:02 +0900 |
parents | d712ee10feb7 |
children |
line wrap: on
line source
int printf(const char *,...); char c[] = {0,1,2,3,4,5,6,7,8,9}; short s[] = {0,1,2,3,4,5,6,7,8,9}; int j[] = {0,1,2,3,4,5,6,7,8,9}; long long l[] = {0,1,2,3,4,5,6,7,8,9}; void f(char *c,short *s, int *j, long long *l) { int i; for( i = 0;i<10;i++) { printf("#0012:%d ",c[i]); } for( i = 0;i<10;i++) { printf("#0015:%d ",s[i]); } for( i = 0;i<10;i++) { printf("#0018:%d ",j[i]); } for( i = 0;i<10;i++) { printf("#0021:%lld ",l[i]); } printf("#0023:\n"); } void st(char *c,short *s, int *j, long long *l) { int i; for( i = 0;i<10;i++) { c[i] = i; printf("#0032:\n"); } for( i = 0;i<10;i++) { s[i] = i; printf("#0036:\n"); } for( i = 0;i<10;i++) { j[i] = i; printf("#0040:\n"); } for( i = 0;i<10;i++) { l[i] = i; printf("#0044:\n"); } } int main() { f(c,s,j,l); st(c,s,j,l); f(c,s,j,l); } /* end */