LF OS
Hobby operating system for amd64 with high ambitions
Loading...
Searching...
No Matches
fileio.c File Reference
#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
#include "fileio.h"
+ Include dependency graph for fileio.c:

Go to the source code of this file.

Functions

static size_t get_file_size (char *path)
 
int read_file (char *path, char **dst)
 

Function Documentation

◆ get_file_size()

static size_t get_file_size ( char *  path)
static

Definition at line 12 of file fileio.c.

+ Here is the caller graph for this function:

◆ read_file()

int read_file ( char *  path,
char **  dst 
)

Definition at line 30 of file fileio.c.

References free(), get_file_size(), malloc(), and size.

+ Here is the call graph for this function: