On Fri, 2004-04-16 at 21:47, Anton Nekhoroshih wrote: > I think better to change function > int db_get_message (u64_t id) on u64_t db_get_message(u64_t id) the > error returns length of the message or if error -1 > or on int db_get_message (u64_t id, u64_t *len) > > How think?
For many other functions, we now use the convention to return an int as status code, and return everything else as call-by-reference, so the form: int db_get_message(u64_t id, u64_t *len) seems the best to me.
