This repository has been archived on 2021-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
sys_prog/list/list_int.c

26 lines
502 B
C

#include "list_int.h"
struct list_int {
int data;
struct list_int* next;
struct list_int* prev;
}
struct list_int* list_int_new() {
struct list_int* s = malloc(sizeof(struct list_int));
if (!s) return s;
s->prev = NULL;
s->next = NULL;
s->data = 'S';
}
void list_int_delete(struct list_int* list) {
}
list_int_iterator list_int_erase(list_int_iterator i) {
if (i->next != i) {
struct list_int* m = i->next;