File: list.h

package info (click to toggle)
bitcollider 0.3.1-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,116 kB
  • ctags: 573
  • sloc: sh: 5,490; ansic: 4,805; cpp: 245; makefile: 109
file content (33 lines) | stat: -rw-r--r-- 641 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* (PD) 2001 The Bitzi Corporation
 * Please see file COPYING or http://bitzi.com/publicdomain 
 * for more info.
 *
 * $Id: list.h,v 1.2 2001/04/03 23:53:49 mayhemchaos Exp $
 */
/*------------------------------------------------------------------------- */

#ifndef LIST_H
#define LIST_H

#ifdef __cplusplus
extern "C" {
#endif

typedef struct _List
{
    int    numItems;
    int    numAllocated;
    void **list;
} List;

List *create_list(void);
int   num_items_in_list(List *list);
void  add_to_list(List *list, void *node);
void *return_item(List *list, int index);
void  delete_list(List *list);

#ifdef __cplusplus
}
#endif

#endif