|
|||||||||||
|
Re: safestr alpha (Safe C String Library)
From: Giorgio Zoppi (deneb) <deneb(at)penguin.it>
Date: Tue Feb 11 2003 - 09:00:23 EST On Tue, Feb 11, 2003, John Viega wrote: > Yes, we're still trying to figure out the mechanism via which we want
Yes, you should not care about this issue. It's not your fault, if the programmer, that has this tendency, should waste his time in a more productive way. But this limits the library functionality, if for example do I wish use your library in my Perl/Python/PHP wrapper?
Or in a more simple way (even if it's not smart):
typedef struct error_c
and pass it towards functions (ie.): char *function_1(const char *someinput, error_ctx *error);
so the programmer can check it, ie:
result = function_1("goofyski",&error); if (error.type==ILLEGAL_STRING)
{
Cheers,
This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:46 EDT |
||||||||||
|
|||||||||||