/* This file is part of the Project Athena Zephyr Notification System. * It contains source for the ZSendList function. * * Created by: Robert French * * $Source$ * $Author$ * * Copyright (c) 1987 by the Massachusetts Institute of Technology. * For copying and distribution information, see the file * "mit-copyright.h". */ /* $Header$ */ #include #include Code_t ZSendList(notice,list,nitems) ZNotice_t *notice; char *list[]; int nitems; { Code_t retval; char *buffer; int len; buffer = (char *)malloc(Z_MAXPKTLEN); if (!buffer) return (ZERR_NOMEM); if ((retval = ZFormatNoticeList(notice,list,nitems,buffer, Z_MAXPKTLEN,&len)) != ZERR_NONE) { free(buffer); return (retval); } retval = ZSendPacket(buffer,len); free(buffer); return (retval); }