[OpenSER-Devel] SF.net SVN: openser: [3563] trunk

Dan Pascu dan at ag-projects.com
Tue Jan 22 22:22:21 UTC 2008


Henning Westerholt wrote:
> Revision: 3563
>           http://openser.svn.sourceforge.net/openser/?rev=3563&view=rev
> Author:   henningw
> Date:     2008-01-22 05:55:43 -0800 (Tue, 22 Jan 2008)
>
> Log Message:
> -----------
> - port database interface (almost) complete from 'const char*' to 'str'
>   for more safety (e.g. not null terminated strings) and performance (save
>   
I think that for convenience and ease of use they should be null 
terminated (in fact there is no issue with doing so considering that the 
database drivers actually returns char* and not str). This way we can 
access them as both a str or a char* depending how the code using the 
database needs them. Otherwise one needs to fake the null termination if 
they need to be accessed as a char*
>   strlen calls in core and library code)
>   

-- 
Dan




More information about the Devel mailing list