home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * INIT.C
- */
-
- #include "defs.h"
-
- Prototype void InitC(void);
- Prototype void UnInitC(void);
-
- Prototype SignalSemaphore SemLock;
- Prototype List StrList;
-
- SignalSemaphore SemLock;
- List StrList;
-
- void
- InitC(void)
- {
- int i;
-
- NewList(&StrList);
- InitSemaphore(&SemLock);
- }
-
- void
- UnInitC(void)
- {
- Node *node;
-
- while (node = RemHead(&StrList))
- FreeMem(node, sizeof(Node) + strlen(node->ln_Name) + 1);
- }
-
-