Working on parser refactor
This commit is contained in:
@@ -14,4 +14,14 @@ typedef struct {
|
||||
size_t length;
|
||||
} String;
|
||||
|
||||
/**
|
||||
* Creates a copy of a string.
|
||||
*
|
||||
* Note that this copy has to be freed afterwards.
|
||||
*
|
||||
* @param string The string to copy.
|
||||
* @returns A null-terminated copy of the string.
|
||||
*/
|
||||
char* string_copy(String string);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user