]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/lib/ZPeekNot.c
f97e8553e0e6d32eeb897e3c0ca9e207dfd3c7c9
[1ts-debian.git] / zephyr / lib / ZPeekNot.c
1 /* This file is part of the Project Athena Zephyr Notification System.
2  * It contains source for ZPeekNotice function.
3  *
4  *      Created by:     Robert French
5  *
6  *      $Id$
7  *
8  *      Copyright (c) 1987 by the Massachusetts Institute of Technology.
9  *      For copying and distribution information, see the file
10  *      "mit-copyright.h". 
11  */
12
13 #ifndef lint
14 static char rcsid_ZPeekNotice_c[] = "$Id$";
15 #endif
16
17 #include <internal.h>
18
19 Code_t ZPeekNotice(notice, from)
20     ZNotice_t *notice;
21     struct sockaddr_in *from;
22 {
23     char *buffer;
24     int len;
25     Code_t retval;
26         
27     if ((retval = ZPeekPacket(&buffer, &len, from)) != ZERR_NONE)
28         return (retval);
29
30     return (ZParseNotice(buffer, len, notice));
31 }