Alex Rousskov wrote:
> Probably. If you are implying that my own code uses memBuf interface
> incorrectly, that is quite possible and, in fact, is a good reason why
> the interface should be improved to become more obvious.
Exacly.
What about this simple API change: A function to return a MemBuf as a C
string instead of accessing MemBuf->buf directly and assuing it is a
string as is done today in many places... This function then ensures
that the buffer is \0 terminated before returning a char * pointer to
the "string".
Regards
Henrik
Received on Wed Apr 17 2002 - 16:52:04 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:15:12 MST