Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (15 sloc) 0.488 kb
/* str.h - str type header */
#ifndef str_h
#define str_h
typedef struct str {
size_t size;
char data[];
} *str;
int strp(datum x);
datum make_str(size_t size);
datum make_str_init(size_t size, const char *bytes);
datum make_str_init_permanent(size_t size, const char *bytes);
int str_cmp_charstar(datum str, size_t len, const char *s);
size_t copy_str_contents(char *dest, datum str, size_t n);
size_t copy_str_contents0(char *dest, datum str, size_t n);
#endif /*str_h*/
Jump to Line
Something went wrong with that request. Please try again.