自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

嵌入小弱

一个刚学嵌入式的老年轻人

  • 博客(3)
  • 收藏
  • 关注

翻译 Linux c 目录操作函数scandir

scandir  #include   int scandir( const char *dir,  struct dirent **namelist,  int (*filter) (const void *b),  int ( * compare )( const struct dirent **, const struct dirent ** ) );

2011-11-22 14:22:04 6663

转载 S_ISDIR()函数

S_ISDIR()函数功能是判断一个路径是否为目录在sys/stat.h中还定义了更多相关的函数The following symbolic names for the values of type mode_t shall also be defined.File type:S_IFMTType of file.S_IFBLKBlock special.

2011-11-08 19:54:04 21395 1

转载 Linux stat函数讲解

Linux stat函数讲解:表头文件:    #include             #include 定义函数:    int stat(const char *file_name, struct stat *buf); 函数说明:    通过文件名filename获取文件信息,并保存在buf所指的结构体stat中返回值:     执行成功则返回0,失败返回-1,错误

2011-11-08 18:56:26 715

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除