head 1.2; access; symbols SFIO_1999:1.1.1.1 ATT:1.1.1; locks; strict; comment @ * @; 1.2 date 99.09.11.13.20.43; author rse; state Exp; branches; next 1.1; 1.1 date 99.08.04.17.55.13; author rse; state Exp; branches 1.1.1.1; next ; 1.1.1.1 date 99.08.04.17.55.13; author rse; state Exp; branches; next ; desc @@ 1.2 log @Merge in Sfio 1999 changes @ text @#include "sftest.h" int main() { Sfio_t* ip; Sfio_t* op; int n; if(!(ip = sfopen((Sfio_t*)0, "/dev/null", "r"))) terror("/dev/null read open\n"); if(!(op = sfopen((Sfio_t*)0, Kpv[0], "w"))) terror("Write open\n"); n = (int)sfmove(ip, op, SF_UNBOUND, -1); if(n) terror("move count %d != 0\n", n); if(!sfeof(ip)) terror("sfeof(ip) expected\n"); if(sfeof(op)) terror("sfeof(op) not expected\n"); if(sferror(ip)) terror("sferror(ip) not expected\n"); if(sferror(op)) terror("sferror(op) not expected\n"); if(sfclose(ip)) terror("sfclose(ip)\n"); if(sfclose(op)) terror("sfclose(op)\n"); rmkpv(); return 0; } @ 1.1 log @Initial revision @ text @d3 1 a3 1 main() @ 1.1.1.1 log @Import of Sfio1999 @ text @@