Files
modules/lib/uvec/uvec_dealloc.c
rkowen 8b7b7af871 Added the uvec code, which provides basic unix vector capabilities.
A unix vector is a NULL terminated array of char * strings.
An example of this is *argv[] or *environ[].
2002-07-18 22:20:42 +00:00

33 lines
1.0 KiB
C

static const char RCSID[]="@(#)$Id: uvec_dealloc.c,v 1.1 2002/07/18 22:20:42 rkowen Exp $";
static const char AUTHOR[]="@(#)uvec 1.1 10/31/2001 R.K.Owen,Ph.D.";
/* uvec.c -
* uvec_dealloc Deallocate the uvec object (vector is not touched)
*
*/
/** ** Copyright *********************************************************** **
** **
** Copyright 2001 by R.K.Owen,Ph.D. **
** last known email: librko@kooz.sj.ca.us **
** rk@owen.sj.ca.us **
** see LICENSE.LGPL, which must be provided, for details **
** **
** ************************************************************************ **/
#include <stdlib.h>
#include "uvec.h"
#ifdef RKOERROR
# include "rkoerror.h"
#endif
#ifdef MEMDEBUG
# include "memdebug.h"
#endif
/* ---------------------------------------------------------------------- */
/* uvec_dealloc - deallocate the unitialized uvec */
int uvec_dealloc(uvec **uv) {
int retval = 0;
free (*uv);
*uv = (uvec *) NULL;
return retval;
}