Skip to content

一个C文件IO问题

作为练习,我写了下面一个用FILE stream来做读写的C程序, 就是简单的读一个给定的文件,让后将每行打印出来,就像cat命令最简单的用法。

Read more

read CAT source file

我学习cat命令的源码及注释。 /*    $OpenBSD: cat.c,v 1.20 2009/10/27 23:59:19 deraadt Exp $    */ /*    $NetBSD: cat.c,v 1.11 1995/09/07 06:12:54 jtc Exp $    */ /* * Copyright (c) 1989, 1993 *    The Regents of the University of California.  All rights reserved. * *…

Read more
Sidebar