git / brickware / marrow.git - main

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

tree / slice_isempty.c

slice_isempty.c

raw

/***
 * slice_isempty.c
 */

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

#include "./slice.h"



int32_t
slice_isempty(const struct slice s) {
    if (0 == s.size) return (1);
    return (0);
}