str_trim
This commit is contained in:
@@ -22,7 +22,7 @@ typedef struct Error {
|
||||
} Error;
|
||||
|
||||
Error* Error_create(const char* msg, bool is_msg_on_heap, ErrorCallPos p);
|
||||
void Error_destroy(Error* e);
|
||||
void Error_free(Error* e);
|
||||
void Error_addCallPos(Error* e, ErrorCallPos p);
|
||||
str Error_toStr(Error* e);
|
||||
void Error_printAndExit(Error* e) __attribute__ ((__noreturn__));
|
||||
|
||||
@@ -48,3 +48,6 @@ str str_toUpper(str src);
|
||||
str str_toLower(str src);
|
||||
|
||||
str hex_to_str(Array(u8) buf, bool uppercase);
|
||||
|
||||
/// @brief removes blank characters from start and end of the line
|
||||
void str_trim(str* line, bool set_zero_at_end);
|
||||
|
||||
Reference in New Issue
Block a user