/**********************************************************************
 * luc_upd_mtg.c -- fill in mtg info
 *
 * $Author: brlewis $
 * $Source: /afs/athena.mit.edu/astaff/project/lucydev/src/lib/RCS/luc_upd_mtg.c,v $
 * $Header: /afs/athena.mit.edu/astaff/project/lucydev/src/lib/RCS/luc_upd_mtg.c,v 1.2 91/09/24 14:39:42 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_upd_mtg_c[] = "$Header: /afs/athena.mit.edu/astaff/project/lucydev/src/lib/RCS/luc_upd_mtg.c,v 1.2 91/09/24 14:39:42 brlewis Exp Locker: brlewis $";
#endif /* lint */

#include <stdio.h>
#include <strings.h>
#include <sys/errno.h>
#include "lucy/lucy.h"
#include "lucy/memory.h"

/**********************************************************************
 * luc_upd_mtg(LMEETING *mtg)
 *	caller should allocate and zero mtg
 *	mtg->nb should already be filled in
 *	XXX how to deallocate?
 *
 * - fills in mtg->info
 * - returns error code
 **********************************************************************/

#if defined(__GNUC__)
inline
#endif
long
luc_upd_mtg(mtg)
     LMEETING *mtg;
{
  long code;

  dsc_get_mtg_info(&(mtg->nb), &(mtg->info), &code);
  if (code)
    bzero((char *) &(mtg->info), sizeof(mtg->info));
  return(code);
}
