Functions
helper.c File Reference
#include "helper.h"
Include dependency graph for helper.c:

Go to the source code of this file.

Functions

void add_str (char **src, const char *format,...)
 
void free_strs (char **list_str, int size)
 
const char * get_filename_ext (const char *filename)
 
void listdir (const char *name, char ***files, int *num_files)
 
void print_strs (char **list_str, int size)
 
char * readfile (const char *filename)
 
void replace_hex (char *src)
 
void replace_negative (char *src, int mode)
 
char ** split (char *str, char *delim, int *size)
 
void trim_str (char *str)
 

Function Documentation

◆ add_str()

void add_str ( char **  src,
const char *  format,
  ... 
)

Definition at line 89 of file helper.c.

◆ free_strs()

void free_strs ( char **  list_str,
int  size 
)

Definition at line 45 of file helper.c.

◆ get_filename_ext()

const char* get_filename_ext ( const char *  filename)

Definition at line 54 of file helper.c.

◆ listdir()

void listdir ( const char *  name,
char ***  files,
int num_files 
)

Definition at line 220 of file helper.c.

◆ print_strs()

void print_strs ( char **  list_str,
int  size 
)

Definition at line 36 of file helper.c.

◆ readfile()

char* readfile ( const char *  filename)

Definition at line 65 of file helper.c.

◆ replace_hex()

void replace_hex ( char *  src)

Definition at line 108 of file helper.c.

◆ replace_negative()

void replace_negative ( char *  src,
int  mode 
)

Definition at line 155 of file helper.c.

◆ split()

char** split ( char *  str,
char *  delim,
int size 
)

Definition at line 7 of file helper.c.

◆ trim_str()

void trim_str ( char *  str)

Definition at line 249 of file helper.c.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:01:19