Making sure filename is null terminated string

Added file_handle validation
This commit is contained in:
Michael Tryby
2019-04-02 12:31:05 -04:00
parent c98d13de80
commit a89f3c9005
5 changed files with 45 additions and 17 deletions
+5 -1
View File
@@ -3,7 +3,11 @@
#define CSTR_HELPER_H_
int copy_cstr(const char *source, char **destination, size_t *size);
#include <stdbool.h>
int copy_cstr(const char *source, char **destination);
bool isnullterm_cstr(const char *source);
#endif /* CSTR_HELPER_H_ */