git / brickware / marrow.git - 34b636f

(2 months ago)commit c268699: initial release of brickware marrow

Back

slice.c

raw

#include <unistd.h>
#include <string.h>
#include "./slice.h"


struct slice
cstrtoslice(const char *s) {
    struct slice result;

    result.ptr = s;
    result.size = strlen(s);

    return (result);
}