tleak.c
来自「su 的源代码库」· C语言 代码 · 共 27 行
C
27 行
/* Copyright (c) Colorado School of Mines, 2006.*//* All rights reserved. */#include "sftest.h"MAIN(){ Sfoff_t m; if(sfopen(sfstdout, tstfile(0), "w") != sfstdout) terror("Can't open %s to write\n", tstfile(0)); if(sfputr(sfstdout,"012345678\n",-1) != 10) terror("Can't write to %s\n", tstfile(0)); if(sfopen(sfstdout, tstfile(1),"w") != sfstdout) terror("Can't open %s to write\n", tstfile(1)); if(sfopen(sfstdin, tstfile(0), "r") != sfstdin) terror("Can't open %s to read\n", tstfile(0)); if((m = sfmove(sfstdin,sfstdout, (Sfoff_t)SF_UNBOUND, -1)) != 10) terror("Moving data from %s to %s m=%lld\n", tstfile(0), tstfile(1), (Sflong_t)m); TSTEXIT(0);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?