|

楼主 |
发表于 2003-12-17 18:07:43
|
显示全部楼层
thanks ....
刚去问了。。。。。

请看这个程序:
include <sys/types.h>
#include "ourhdr.h"
int
main (void)
{
if (lseek(STDIN_FILENO,0,SEEK_CUR) == -1 )
printf ("can not seek \n");
else
printf ("seek OK \n");
exit (0) ;
}
这样运行:
a.out</etc/fstab
seek Ok
cat </etc/fstab|a.out
cat not seek
请教,这算有参数吗? |
|