]> asedeno.scripts.mit.edu Git - 1ts-debian.git/blob - zephyr/lib/ZFlsLocs.c
58c33465975008036889a6b6dfcbbe4656455906
[1ts-debian.git] / zephyr / lib / ZFlsLocs.c
1 /* This file is part of the Project Athena Zephyr Notification System.
2  * It contains source for the ZFlushLocations 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_ZFlushLocations_c[] = "$Id$";
15 #endif
16
17 #include <internal.h>
18
19 Code_t ZFlushLocations()
20 {
21         int i;
22         
23         if (!__locate_list)
24                 return (ZERR_NONE);
25
26         for (i=0;i<__locate_num;i++) {
27                 free(__locate_list[i].host);
28                 free(__locate_list[i].time);
29                 free(__locate_list[i].tty);
30         }
31         
32         free((char *)__locate_list);
33
34         __locate_list = 0;
35         __locate_num = 0;
36
37         return (ZERR_NONE);
38 }