Linux-文件操做(open、write、read、close、iotcl)

首先,介绍一下linux环境下简单c程序的执行与运行,就以HelloWorld为例。linux 创建并编写一个.c文件。 命令:touch helloWorld.c 编写文件内容:vim helloWorld.c(固然,也能够用emacs,我的不喜欢emacs) 文件中的内容: #include <stdio.h> #include <stdlib.h> int main(){ printf
相关文章
相关标签/搜索