1 2 3 4 5 6
#include "strings.h" #include <string.h> String String_new(char* buf) { return (String){.buf = buf, .len = strlen(buf)}; }