X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Flibpspp%2Fstr.h;h=0b57f7364e07816400b0d90f80e12376f219b821;hb=b2be264914a7f376fa00d26de702c7077f086ca8;hp=b9be394c59c46a95f1f593e970ac83e4cdb8d7b8;hpb=c9b92e317e7426db24fce2636134e1e46eb05d40;p=pspp diff --git a/src/libpspp/str.h b/src/libpspp/str.h index b9be394c59..0b57f7364e 100644 --- a/src/libpspp/str.h +++ b/src/libpspp/str.h @@ -20,6 +20,7 @@ #include #include #include +#include #include #include @@ -202,6 +203,7 @@ char *ds_xstrdup (const struct string *); size_t ds_capacity (const struct string *); char *ds_cstr (const struct string *); +char *ds_steal_cstr (struct string *); /* File input. */ bool ds_read_line (struct string *, FILE *, size_t max_length); @@ -223,4 +225,10 @@ char *ds_put_uninit (struct string *st, size_t incr); /* calls relocate from gnulib on ST */ void ds_relocate (struct string *st); + +void u8_buf_copy_rpad (uint8_t *dst, size_t dst_size, + const uint8_t *src, size_t src_size, + char pad); + + #endif /* str_h */