Untitled

 avatar
unknown
plain_text
a year ago
297 B
3
Indexable
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include "ourhdr.h"

int main(void) {
    if (creat("file2", S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) < 0)
        err_sys("creat error for file2");
    exit(0);
}
Editor is loading...
Leave a Comment