Untitled

mail@pastecode.io avatar
unknown
plain_text
2 months ago
297 B
1
Indexable
Never
#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("file1", S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH) < 0)
        err_sys("creat error for file1");
    exit(0);
}
Leave a Comment