Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

file descriptor linux c++

#include <fcntl.h>
int main() {
    unsigned char buffer[16];     
    int fd = open (argv[1], O_RDONLY);
    read(fd, buffer, sizeof(buffer));
    return 0;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #file #descriptor #linux
ADD COMMENT
Topic
Name
6+2 =