s******e 发帖数: 273 | 1 【 以下文字转载自 Programming 讨论区 】
【 原文由 seashore 所发表 】
hi, I have some question on the function "system()"
in C, which provide a interfact to execute a
shell command. suppose my calling program "master.c"
is written as
void main() {
;
;
for(i=0; i < 100; i++) res=system("cmd");
;
;
}
and the callee "cmd.c" is written as
int main() {
int r = random();
int *a = calloc(r, sizeof(int));
return(r);
}
I have two problem |
|