(my)TinyLibC 0.0.1
little tiny pretty lib c
Loading...
Searching...
No Matches
tlcfs.h File Reference

Go to the source code of this file.

Functions

char * fs_get_content (char const *path)
 get the entire content of file path (if readable)
 
int fs_get_size (char const *path)
 get size of the content of filepath (if stat can)
 
int fs_open_ronly (char const *path)
 open file path with read only
 

Function Documentation

◆ fs_get_content()

char * fs_get_content ( char const *  path)

get the entire content of file path (if readable)

Parameters
path
Returns
null if path is not readable; otherwise the content

◆ fs_get_size()

int fs_get_size ( char const *  path)

get size of the content of filepath (if stat can)

Parameters
path
Returns
-1 if stat cant get size; the size else

◆ fs_open_ronly()

int fs_open_ronly ( char const *  path)

open file path with read only

Parameters
path
Returns
-1 if cant open; the file descriptor else