Commit 0d5e537e authored by Theo Betton's avatar Theo Betton
Browse files

wip

parent cc6bb2ce
Loading
Loading
Loading
Loading
+10 −2
Original line number Diff line number Diff line
@@ -7,15 +7,24 @@ struct cell_t {
typedef struct cell_t* list_t;

list_t list_empty(){
  return NULL;
}

int list_is_empty(list_t l){
  if(l == NULL){
      return l == NULL;
  }else{
    return l != NULL;
  }
}

list_t list_push(list_t l, void* x){
  l->val = x;
  return l;
}

list_t list_tail(list_t l){
  
}

void* list_pop(list_t* l){
@@ -33,4 +42,3 @@ void* list_in(list_t l, void* x, int (*eq)(void*, void*)){

unsigned long int list_len(list_t l){
}