head 1.1; branch 1.1.1; access; symbols SFIO_1999:1.1.1.2 SFIO_1998:1.1.1.1 SFIO_1997:1.1.1.1 ATT:1.1.1; locks; strict; comment @ * @; 1.1 date 96.11.20.01.33.59; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 96.11.20.01.33.59; author rse; state Exp; branches; next 1.1.1.2; 1.1.1.2 date 98.08.31.20.09.42; author rse; state Exp; branches; next ; desc @@ 1.1 log @Initial revision @ text @#include "sfstdio.h" /* Opening a process as a stream ** Written by Kiem-Phong Vo */ #if __STD_C FILE* popen(const char* string,const char* mode) #else FILE* popen(string,mode) char* string; char* mode; #endif { reg Sfio_t* sp; reg FILE* fp; if(!(sp = sfpopen(NIL(Sfio_t*), string, mode))) return NIL(FILE*); if(!(fp = _stdstream(sp))) { sfclose(sp); return NIL(FILE*); } return(fp); } @ 1.1.1.1 log @Import of Sfio1997 @ text @@ 1.1.1.2 log @Import of Sfio1999 @ text @d19 1 a19 1 if(!(sp = sfpopen((Sfio_t*)(-1), string, mode))) @