creat函数
creat函数用于文件的建立
表头文件#incliude<sys/type.h>
#include<sys/stat.h>
#include<fcnt.h>
定义函数:int creat(const char *pathname, mode, mode_tmode);
pathname:指向文件路径字符串的指针
creat函数会返回新的文件描述词,-1则表示有错误
creat函数
creat函数用于文件的建立
表头文件#incliude<sys/type.h>
#include<sys/stat.h>
#include<fcnt.h>
定义函数:int creat(const char *pathname, mode, mode_tmode);
pathname:指向文件路径字符串的指针
creat函数会返回新的文件描述词,-1则表示有错误