home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.ncftp.com
/
ftp.ncftp.com.zip
/
ftp.ncftp.com
/
libncftp
/
older_versions
/
libncftp-3.1.5-src.tar.gz
/
libncftp-3.1.5-src.tar
/
libncftp-3.1.5
/
Strn
/
DStrFree.c
< prev
next >
Wrap
C/C++ Source or Header
|
2001-11-19
|
387b
|
27 lines
#include "syshdrs.h"
#ifdef PRAGMA_HDRSTOP
# pragma hdrstop
#endif
void
DStrClear(DStr *const dst)
{
if (! IS_DSTR_CORRUPT(dst)) {
if (dst->s != NULL)
memset(dst->s, 0, dst->allocSize);
dst->len = 0;
}
} /* DStrClear */
void
DStrFree(DStr *const dst)
{
if (! IS_DSTR_CORRUPT(dst)) {
if (dst->s != NULL)
free(dst->s);
}
memset(dst, 0, sizeof(DStr));
} /* DStrFree */