由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - [转载] system call question
相关主题
.cshrc?.login?.profile?How to get the name of current executable in a library routine?
奇怪问题一个Re: How to get the name of current executable in a library routine?
strange problem about wget executionhow come this stupid question?
关于一个C++library的连接how to execute a.out? (a stupid question)
how to use function calloc of c in fortran?[转载] Re: about incoming email
奇怪的 C 问题how to leave a process running even logout?
how do u check a machine is 32/64 bit?A problem
anyone used softbench in HP-UX???what's the difference between .a and .so,
相关话题的讨论汇总
话题: int话题: system话题: question话题: written话题: main
进入Unix版参与讨论
1 (共1页)
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
1 (共1页)
进入Unix版参与讨论
相关主题
what's the difference between .a and .so,how to use function calloc of c in fortran?
帮帮忙,用C作一个SHELL奇怪的 C 问题
[转载] Help, about clock().how do u check a machine is 32/64 bit?
how to transfer C program run under VC to Unix?anyone used softbench in HP-UX???
.cshrc?.login?.profile?How to get the name of current executable in a library routine?
奇怪问题一个Re: How to get the name of current executable in a library routine?
strange problem about wget executionhow come this stupid question?
关于一个C++library的连接how to execute a.out? (a stupid question)
相关话题的讨论汇总
话题: int话题: system话题: question话题: written话题: main