DynString.h 229 B

12345678910111213
  1. #ifndef DYN_STRING_H_
  2. #define DYN_STRING_H_
  3. #include <stddef.h>
  4. typedef struct {
  5. char* data;
  6. size_t len;
  7. } DynString;
  8. short DynString_alloc(DynString* dstr, const char* str, const size_t len);
  9. #endif // DYN_STRING_H_