httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "César Leonardo Blum Silveira" <cesa...@gmail.com>
Subject Question regarding the use of DBMs
Date Mon, 05 May 2008 21:04:15 GMT
Hello,

What is the correct way to fill the dsize field in apr_datum_t? I am
not sure whether I should do it like this

apr_datum_t d;

d.dptr = "hello, world";
d.dsize = strlen(d.dptr);

or like this

apr_datum_t d;

d.dptr = "hello, world";
d.dsize = strlen(d.dptr) + 1;

Could anyone tell me whether the +1 in the second case is really necessary?

Thanks,

-- 
César L. B. Silveira

Mime
View raw message