cstack_t *cstack_init() {
cstack_t *stack = malloc(sizeof(cstack_t));
- stack->content = (void*)0;
+ stack->content = NULL;
stack->alloc = stack->size = 0;
stack->head = -1;
stack->push = cstack_push;
cstring_t *cstring_init() {
cstring_t *x = malloc(sizeof(cstring_t));
- x->text = (void*)0;
+ x->text = NULL;
x->size = x->alloc = 0;
x->expand = cstring_expand;
x->expand_arr = cstring_expand_arr;
void cstring_reset(cstring_t *self) {
free(self->text);
- self->text = (void*)0;
+ self->text = NULL;
self->size = self->alloc = 0;
}