open.c
来源:互联网 发布:ccx中线持仓指标源码 编辑:程序博客网 时间:2024/06/16 23:12
/*open.c*/
#include <unistd.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <stdio.h>
int main(void)
{
int fd;
if((fd = open("/tmp/hello.c", O_CREAT | O_TRUNC | O_WRONLY , 0600 ))<0){
perror("open:");
exit(1);
}
else{
printf("Open file: hello.c %d/n",fd);
}
if( close(fd) < 0 ){
perror("close:");
exit(1);
}
else
printf("Close hello.c/n");
exit(0);
}
- open.c
- open c pkg
- FileStream Open File [C#]
- C语言open()函数
- open.c源代码阅读
- symbian Open C and Open C++ 相关
- c/c++ 学习-open 函数
- C语言OPEN函数详解
- C语言OPEN函数详解
- C语言OPEN函数详解
- C语言中open函数
- C语言中open函数
- Open itunes by objective c
- C语言 open函数
- c语言之open函数
- C语言OPEN函数详解
- C语言OPEN函数详解
- c/c++ 学习-open 函数
- 无驱动上位机软件开发途径
- GPU-based Supercomputing Could Face Price Hikes
- EXCEL行列坐标与字符串的相互转换
- DDR内存分类有哪些
- 正则表达式(RegularExpressions)-- 字符串处理利器
- open.c
- vector
- vector
- Warning: session_start() [function.session-start]: open_basedir restriction in effect. File(F:/Windows/TEMP/) is not within the
- jini 是什么!
- write.c
- Java多线程编程总结
- ATL and MFC String Conversion Macros(Cstring转char*)
- 房地产软件信息化——CRM的“中海模式”穆利堂-movno1