mirror of
https://github.com/pjreddie/darknet.git
synced 2023-08-10 21:13:14 +03:00
Some bug fixes, random stuff
This commit is contained in:
@ -208,6 +208,13 @@ void strip_char(char *s, char bad)
|
||||
s[len-offset] = '\0';
|
||||
}
|
||||
|
||||
void free_ptrs(void **ptrs, int n)
|
||||
{
|
||||
int i;
|
||||
for(i = 0; i < n; ++i) free(ptrs[i]);
|
||||
free(ptrs);
|
||||
}
|
||||
|
||||
char *fgetl(FILE *fp)
|
||||
{
|
||||
if(feof(fp)) return 0;
|
||||
|
Reference in New Issue
Block a user