[Bf-committers] Re:
[Bf-blender-cvs] CVS commit: blender/source/blender/src
header_info.c usiblender.c
Jiří Hnídek
jiri.hnidek at tul.cz
Wed May 31 15:41:51 CEST 2006
Hi Ton,
can you tell me, what exactly should do this string library. What
functions should be written? Should it be replacement of functions from
<string.h>, using our famous MEM_allocN_len(); ... something like that?
BLI_strcpy(char *dest, const char *src);
BLI_strncpy(char *dest, const char *src, size_t n);
BLI_strcat(char *dest, const char *src);
BLI_strncat(char *dest, const char *src, size_t n);
...
Jiri
> I would make a compatible system, so traditional strings and 'dynstring'
> can be used both. Just by still using char pointers. That's why I
> mentioned our malloc system, you can use that to find out if the string
> is actually allocated, to prevent errors.
>
> Further it'll fit in SNDA simply, you can then call standard string
> library functions too, and all other string-eating stuff in Blender.
>
> -Ton-
>
More information about the Bf-committers
mailing list