open(2)fopen(3) aus stdio.hint open(const char *path, int flags)size_t read(int fd, void *buf, size_t count)off_t lseek(int fd, off_t offset, int whence)int close(int fd)struct FILEstdin, stdout, stderrFILE* fopen(const char *path, const char *mode)mode: z.B. “r” (Lesen), “r+” (Schreiben & Lesen), “a” (Anhängen)
FILE-Datenstruktur zurück - wird später benötigtsize_t fread(void *buf, size_t itemsize, size_t count, FILE *stream)off_t fseek(FILE *stream, off_t offset, int whence)int fclose(FILE *stream)stream aus
long ftell(FILE *stream)int fscanf(FILE *stream, const char *format, ...)scanf(3)int fprintf(FILE *stream, const char *format, ...)printf(3)int stat(const char* pathname, struct stat* statbuf);
S_ISREG(statbuf.st_mode) liefert für eine reguläre Datei trueS_ISDIR(statbuf.st_mode) liefert für ein Verzeichnis trueDIR* opendir(const char *path)DIR-Datenstruktur - wird später benötigtstruct dirent* opendir(DIR *dir)dirent-Datenstrukturman 3 readdirint closedir(DIR *dir)strlen(3) bestimmenmalloc(3) allozieren un später freigeben (free(3))