A Blog to learn Software Technologies like C, Golang and Java
#include <stdio.h> #include <unistd.h> int main(void) { if( access("/home/pc/test.txt", F_OK) != 0 ) printf("File not available\n"); else printf("File available\n"); return 0; }
what does the "unistd.h" deal with ?
This POSIX header file contains the declarations for functions that perform input/output operations at the operating system level.Ref : http://en.wikipedia.org/wiki/Unistd.h
what does the "unistd.h" deal with ?
ReplyDeleteThis POSIX header file contains the declarations for functions that perform input/output operations at the operating system level.
ReplyDeleteRef : http://en.wikipedia.org/wiki/Unistd.h