[Bf-committers] Re: [Bf-blender-cvs] CVS commit: blender/source/blender/src header_info.c usiblender.c

Ton Roosendaal ton at blender.org
Tue May 30 14:22:18 CEST 2006


Hi,

I meant *maximum* space for strings... that's the whole problem you  
know!

-Ton-

On 30 May, 2006, at 13:38, Jiří Hnídek wrote:

> 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.
>
> Jiri
>
> 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-
> _______________________________________________
> Bf-committers mailing list
> Bf-committers at projects.blender.org
> http://projects.blender.org/mailman/listinfo/bf-committers
>
>
>
------------------------------------------------------------------------ 
--
Ton Roosendaal  Blender Foundation ton at blender.org  
http://www.blender.org



More information about the Bf-committers mailing list