- Committing first working version of new AMOR settings module
This commit is contained in:
15
dynstring.c
15
dynstring.c
@ -97,7 +97,17 @@
|
||||
free(self->pBuffer);
|
||||
|
||||
free(self);
|
||||
}
|
||||
}
|
||||
/*--------------------------------------------------------------------------*/
|
||||
int DynStringClear(pDynString self)
|
||||
{
|
||||
assert(self);
|
||||
assert(self->iMAGIC == DYNMAGIC);
|
||||
|
||||
self->iTextLen = 0;
|
||||
memset(self->pBuffer,0,self->iBufferSize);
|
||||
return 1;
|
||||
}
|
||||
/*-------------------------------------------------------------------------*/
|
||||
int DynStringCopy(pDynString self, char *pText)
|
||||
{
|
||||
@ -245,3 +255,6 @@
|
||||
return self->iTextLen;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user