mallailua
This commit is contained in:
@@ -3,6 +3,18 @@
|
||||
|
||||
#include <stddef.h>
|
||||
|
||||
/**
|
||||
* Concatenate two strings into a buffer.
|
||||
*
|
||||
* If resulting string would be longer than buflen - 1, the resulting string in \p
|
||||
* buf is unchanged.
|
||||
*
|
||||
* @param first Null terminated character string
|
||||
* @param second Null terminated character string
|
||||
*/
|
||||
size_t hi_strncat_buf(size_t bufsize, char buf[bufsize], const char *first,
|
||||
const char *second);
|
||||
|
||||
/**
|
||||
* @brief Copy file content to a null terminated string, allocating memory while
|
||||
* reading.
|
||||
@@ -18,8 +30,7 @@
|
||||
* @param nmax if not 0, this amount of memory in bytes is read and used as
|
||||
* initial allocation
|
||||
*/
|
||||
char *hi_string_from_file_dyn(const char *filename, size_t *nread,
|
||||
size_t nmax);
|
||||
char *hi_string_from_file_dyn(const char *filename, size_t *nread, size_t nmax);
|
||||
|
||||
/**
|
||||
* Find if filename exists at the end of path.
|
||||
|
||||
Reference in New Issue
Block a user