On Thu, Jan 31, 2002 at 09:09:05PM +0530, Ritesh wrote:
> I am assuming that "task" here is a structure that contains "dblog" along
> with other members , and dblog  is a character string.
> Now when you do
> > memset(task, '\0', sizeof(DB_TASK));
> 
> You have set all the content of task to \0. this includes the address of
> dblog variable, this address effectively now is '\0' :-) .

I doubt it. If it were so, then accessing task->dblog would cause
an access violation. Perhaps the dblog field is "inlined" into the
structure (not a char* but a char[32]).

Marco

-- 
========================================================================
Marco Pantaleoni                                  [EMAIL PROTECTED]
Padova, Italy                                              [EMAIL PROTECTED]
elastiC language developer                   http://www.elasticworld.org

-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to