由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - Help Bus error
相关主题
请问在Unix下面的C++程序Bus Error是什么错?求助:pthread_create的用法
如何把提示符变成大写黑体(谢谢)-NULL[转载] UNIX下的strtok
X Window programmingHelp--如何打开 FrameMaker format (MakerFile 4.0) 的文件?
How to input Chinese under Chinese Version SunOS5.7?(NULL)为什么这段代码在FreeBSD上不work? (编译没问题)
Abort(coredump) ??????????????UNIX 下, 如何进入带空格的目录? (NULL)
[转载] how to find IP of current server of UNIX by C language(NULL)Re: UNIX 下, 如何进入带空格的目录? (NULL) ----Many Thanks!
Re: [转载] how to find IP of current server of UNIX by C language(NULLXView error:NULL pointer passed to xv_set
help on building shared object[转载] 活见鬼了---搞不定的程序
相关话题的讨论汇总
话题: bufps话题: bus话题: ptr话题: error话题: null
进入Unix版参与讨论
1 (共1页)
n*******r
发帖数: 60
1
I put a group of Popen command before a function, it is fine.
However, when I put it into a function, it showed always Bus Error
The following is the code
if ((ptr = popen(cmd, "r")) != NULL
{
while (fgets(bufPS, 40, ptr) != NULL)
{
(void) printf("%s", bufPS);
(void) strcat(bufPine,bufPS);
}
pclose(ptr);
}
Help me please!!!
1 (共1页)
进入Unix版参与讨论
相关主题
[转载] 活见鬼了---搞不定的程序Abort(coredump) ??????????????
code[转载] how to find IP of current server of UNIX by C language(NULL)
What is data channel? Appreciate ur help! (NULL inside)Re: [转载] how to find IP of current server of UNIX by C language(NULL
fork() and execve() in Unixhelp on building shared object
请问在Unix下面的C++程序Bus Error是什么错?求助:pthread_create的用法
如何把提示符变成大写黑体(谢谢)-NULL[转载] UNIX下的strtok
X Window programmingHelp--如何打开 FrameMaker format (MakerFile 4.0) 的文件?
How to input Chinese under Chinese Version SunOS5.7?(NULL)为什么这段代码在FreeBSD上不work? (编译没问题)
相关话题的讨论汇总
话题: bufps话题: bus话题: ptr话题: error话题: null