std1.0.0-beta-7 SafeC docs

std :: str

Function std::str_bytes

#include <std/str.h> source · definition

[]const char str_bytes(const &char s)

The bytes of a NUL-terminated string (without the NUL) as a slice — the way to hand a literal or C string to an API taking []const char / []const unsigned char: base64_encode(str_bytes("foobar"))