diff options
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r-- | source/blender/blenlib/BLI_util.h | 3 | ||||
-rw-r--r-- | source/blender/blenlib/intern/string.c | 3 |
2 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenlib/BLI_util.h b/source/blender/blenlib/BLI_util.h index ca6dde8b3bd..e78a58b2282 100644 --- a/source/blender/blenlib/BLI_util.h +++ b/source/blender/blenlib/BLI_util.h @@ -55,6 +55,9 @@ int BLI_stringdec(char *string, char *kop, char *start, unsigned short *numlen); void BLI_stringenc(char *string, char *kop, char *start, unsigned short numlen, int pic); void BLI_splitdirstring(char *di,char *fi); +/* make sure path separators conform to system one */ +void BLI_clean(char *path); + /** * dir can be any input, like from buttons, and this function * converts it to a regular full path. diff --git a/source/blender/blenlib/intern/string.c b/source/blender/blenlib/intern/string.c index 2fefe1d9b45..715a9316657 100644 --- a/source/blender/blenlib/intern/string.c +++ b/source/blender/blenlib/intern/string.c @@ -36,9 +36,12 @@ #include <string.h> #include <stdlib.h> #include <stdarg.h> +#include <ctype.h> #include "MEM_guardedalloc.h" +#include "BLI_string.h" + char *BLI_strdupn(const char *str, int len) { char *n= MEM_mallocN(len+1, "strdup"); memcpy(n, str, len); |