[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
Tue May 30 13:38:45 CEST 2006

Hi Ton,
why need I store length of string? I can use function strlen(string), 
can't I. What should do generic string manipulation library? I guess, I 
could write one.


Ton Roosendaal wrote:
> Hi,
>> I'm just rewriting recent open as ListBase and I would like to replace 
>> sce[160], lib[160], ima[160] with pointers at char in the future too.
> A nice generic string manipulation lib would help too :)
> Using our secured malloc, any malloc can always be verified to return 
> the data allocation size, with this call;
> MEM_allocN_len();
> So you don't need to store string lengths.
> -Ton-

More information about the Bf-committers mailing list