lsflib/include/lsf/list.h
author Markus Bröker <mbroeker@largo.dyndns.tv>
Fri, 27 Dec 2013 16:00:09 +0100
changeset 167 7c6b221900bf
parent 120 430dbec0c228
permissions -rw-r--r--
Proper Datatypes to leave the 80's
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
120
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     1
/**
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     2
 * test/demos/lsflib/include/list.h
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     3
 * Copyright (C) 2008 Markus Broeker
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     4
 */
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     5
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     6
#ifndef __LIST_H__
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     7
#define __LIST_H__
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     8
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
     9
typedef struct node {
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    10
    char *data;
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    11
    struct node *next;
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    12
} Node;
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    13
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    14
void set_limit (long);
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    15
Node *addnode (Node *, char *);
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    16
Node *getnode (Node *);
430dbec0c228 step 1) move all headers to include/lsf
Markus Bröker <mbroeker@largo.dyndns.tv>
parents:
diff changeset
    17
#endif