PatchworkOS
Loading...
Searching...
No Matches
fread.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include "user/common/file.h"
#include "user/common/syscalls.h"

Go to the source code of this file.

Functions

size_t fread (void *_RESTRICT ptr, size_t size, size_t nmemb, FILE *_RESTRICT stream)
 

Function Documentation

◆ fread()

size_t fread ( void *_RESTRICT  ptr,
size_t  size,
size_t  nmemb,
FILE *_RESTRICT  stream 
)

Definition at line 7 of file fread.c.

References _FILE_CHECK_AVAIL, _FILE_GETC, _file_prepare_read(), ERR, mtx_lock(), and mtx_unlock().