Chinaunix首页 | 论坛 | 博客
  • 博客访问: 1058339
  • 博文数量: 573
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 66
  • 用 户 组: 普通用户
  • 注册时间: 2016-06-28 16:21
文章分类

全部博文(573)

文章存档

2018年(3)

2016年(48)

2015年(522)

分类: LINUX

2015-12-02 17:01:59


点击(此处)折叠或打开

  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. #include <unistd.h>

  4. /home/eas/src/API_fun/abc
  5. /home/eas/src/API_fun/

  6. int main(int argc,char** argv)
  7. {
  8.     char path[1024]="/home/eas/src/API_fun/";
  9.     if( access(path,F_OK) != 0 )
  10.         printf("access here!\n");
  11.     else
  12.         printf("access there!\n");
  13.     return 0;
  14. }

阅读(262) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~