git / brickware / marrow.git - main

(45 minutes ago)commit 7790c99: Meh. Halfway vector implementation. Not happy with the name

tree / slice_empty.c

slice_empty.c

raw

/***
 * slice_empty.c
 */

#include <stdint.h>
#include <stdlib.h>

#include "./slice.h"


struct slice
slice_empty(void) {
    return (struct slice){
        .ptr = 0x00,
        .size = 0,
    };
}