1
4

1 回答 1

1

当提供正确的包含文件时,您的程序将毫无怨言地编译。

#include <stdio.h>              /* needed for printf */
#include <stdlib.h>             /* needed for exit */
#include <unistd.h>             /* needed for access and F_OK */
void Check_file(char *filepath)
{
        if(access( filepath, F_OK ) == -1 ) {
                printf("\nUnable to access : %s\n",filepath);

                exit(1);
        }
        return;
}
int main () { return 0; }
于 2013-07-16T15:00:00.077 回答