Project

General

Profile

Revision 318

fixed minor error

View differences:

list.c
54 54
list_node_t* (list_begin)    (list_t *l){ return l->begin_->n; }
55 55
list_node_t* (list_end)      (list_t *l){ return l->end_; }
56 56
size_t       (list_size)     (const list_t *l){ return l->sz; }
57
int          (list_empty)    (const list_t *l){ return (l->sz ? true : false); }
57
int          (list_empty)    (const list_t *l){ return (l->sz ? false : true); }
58 58
list_node_t* (list_insert)   (list_t *l, list_node_t *position, void *val){
59 59
    list_node_t *node = list_node_ctor(position->p, position, val);
60 60
    position->p->n = node;

Also available in: Unified diff