摘要:
管道函数#inlcude <unistd.h>int pipe(int fd[2])上图来自unix网络编程卷二,描述了父子进程通过两个管道进行数据通信。一个简单父子进程通信的例程:pipe.h:#include <unistd.h>#include <stdlib.h>#include <stdio.h>void server(int rd,int wr){ char buff[100]; ssize_t n; if((n = read(rd,buff,100)) == 0){ printf("no chars\n"); r 阅读全文
摘要:
转载自:http://www.cnblogs.com/tactoth/archive/2009/09/27/1574772.html不懂最近口干,不喜多言,代码说话:Call_cdecl_stdcallintr=func(3,4);00411AEE push 400411AF0 push 300411AF2 call func (4111E5h)00411AF7 add esp,800411AFA mov dword ptr [r],eaxintr=func(3,4);00411AEE push 400411AF0 push 300411AF2 call func (4111EAh)00411 阅读全文