CnUnix

[알림판목록 I] [알림판목록 II] [글목록][이 전][다 음]
[ CnUnix ] in KIDS
글 쓴 이(By): lemonde (bleu)
날 짜 (Date): 2004년 7월 18일 일요일 오전 06시 21분 27초
제 목(Title): questioin[3~[3~\[3~[3~[3~


Sorry about writing in english

I have defined a two dimensional array:

int **x;

x = (int **)calloc(10*10,sizeof(int));
for (i=0; i<=9; i++)
x[i] = (int *)calloc(10,sizeof(int));


I want to make the above codes into a short-hand function or macro,
that is,

int **x;
myfunc(x,10,10)


How can I write myfunc()? 

I appreciate your helpful comments.

Thanks in advance!




h








:h:w.
that it,


md
,
[알림판목록 I] [알림판목록 II] [글 목록][이 전][다 음]
키 즈 는 열 린 사 람 들 의 모 임 입 니 다.