ouster_clib v1.0
C library for Ouster LiDAR
Loading...
Searching...
No Matches
Files

Read files. More...

Functions

int ouster_fs_readfile_failed_reason (char const *filename, char *buf, int len)
 Convert fs_readfile error to string. More...
 
void ouster_fs_pwd ()
 Prints current working directory.
 
char * ouster_fs_readfile (char const *path)
 Read whole file and allocates memory. More...
 

Detailed Description

Read files.

Function Documentation

◆ ouster_fs_readfile()

char * ouster_fs_readfile ( char const *  path)

Read whole file and allocates memory.

Parameters
pathfilename to read

◆ ouster_fs_readfile_failed_reason()

int ouster_fs_readfile_failed_reason ( char const *  filename,
char *  buf,
int  len 
)

Convert fs_readfile error to string.

Parameters
filenamefilename
bufout error buffer string
lenerror buffer string length
Returns
int the length that got written to buffer string