Claude Chappe' Curse - A C Game
Logo Institut d'Informatique Claude Chappe Logo Université de Le Mans Logo Raeptor Production
 
Loading...
Searching...
No Matches
stringio.h File Reference

Provides utility functions for string and file operations. More...

#include <string.h>
Include dependency graph for stringio.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define strtok_s   strtok_r
 
#define strtok_r   strtok_r
 

Functions

char * read_filef (FILE *file)
 Reads the contents of a file into a string.
 
char * read_file (const char *path)
 Reads the contents of a file into a string.
 
char * get_folder_path (const char *fullpath)
 Extracts the folder path from a full file path.
 
char * convert_path (const char *path)
 Converts backslashes in a path to forward slashes.
 
char * concat_path (const char *path1, const char *path2)
 Concatenates two file paths.
 
int find_string_index (char *str, const char *const *str_list, int list_size)
 Finds the index of a string in a list of strings.
 
char * format_escaped_newlines (char *str)
 Formats escaped newlines in a string.
 
int is_utf8_start_byte (unsigned char c)
 Checks if a byte is a valid UTF-8 start byte.
 
void remove_last_utf8_char (char *inputBuffer)
 Removes the last UTF-8 character from a string.
 

Detailed Description

Provides utility functions for string and file operations.

This header file contains declarations for functions that handle reading files, manipulating file paths, searching strings, and processing UTF-8 encoded strings.

Macro Definition Documentation

◆ strtok_s

#define strtok_s   strtok_r

◆ strtok_r

#define strtok_r   strtok_r