/**********************************************************************
 * luc_free_csp.c -- free list of correspondents
 *
 * $Author: brlewis $
 * $Source: /afs/athena.mit.edu/astaff/project/lucydev/src/lib/RCS/luc_free_csp.c,v $
 * $Header: /afs/athena.mit.edu/astaff/project/lucydev/src/lib/RCS/luc_free_csp.c,v 1.1 91/08/01 14:31:07 brlewis Exp Locker: brlewis $
 *
 * Copyright 1991 by the Massachusetts Institute of Technology.
 *
 * For copying and distribution information, please see the file
 * <mit-copyright.h>.
 **********************************************************************/
#include <mit-copyright.h>

#ifndef lint
static char rcsid_luc_free_csp_c[] = "$Header: /afs/athena.mit.edu/astaff/project/lucydev/src/lib/RCS/luc_free_csp.c,v 1.1 91/08/01 14:31:07 brlewis Exp Locker: brlewis $";
#endif /* lint */

#include <stdio.h>
#include <lucy/lucy.h>

/**********************************************************************
 * luc_free_csp(char ***arrayp)
 *
 * - frees memory allocated by luc_csp()
 **********************************************************************/

void
luc_free_csp(arrayp)
     char ***arrayp;
{
  register char **s;

  if (!*arrayp) return;
  s = *arrayp;
  while(*s) free(*(s++));
  free(*arrayp);
  *arrayp = NULL;
  return;
}
