35 char *ret =
p->str +
p->len;
36 if ((
p->len + l) >=
p->size) {
43 if (
p->size < osize) {
67 return (
size_t)(ptr -
p->str);
71 int l = strlen(
s) + 1;
89 if (
p->len ==
p->size) {
104 if (!
p || !
p->str || index < 0 || index >=
p->len) {
107 return p->str + index;
112 if (index < 0 || index >=
p->len) {
115 for (
i = 0;
i < index;
i++) {
124 return (ret > 0) ? ret : 0;
130 char *q = ptr + strlen(ptr) + 1;
131 if (q >= (
p->str +
p->len)) {
_Use_decl_annotations_ int __cdecl printf(const char *const _Format,...)
RZ_API void Ht_() free(HtName_(Ht) *ht)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
void * realloc(void *ptr, size_t size)
void * malloc(size_t size)
int main(int argc, char **argv)
RZ_API int rz_str_ansi_trim(char *str, int str_len, int n)
RZ_API int rz_strpool_get_index(RzStrpool *p, const char *s)
RZ_API int rz_strpool_append(RzStrpool *p, const char *s)
RZ_API int rz_strpool_ansi_chop(RzStrpool *p, int n)
RZ_API char * rz_strpool_get(RzStrpool *p, int index)
RZ_API int rz_strpool_fit(RzStrpool *p)
RZ_API char * rz_strpool_get_i(RzStrpool *p, int index)
RZ_API char * rz_strpool_slice(RzStrpool *p, int index)
RZ_API char * rz_strpool_empty(RzStrpool *p)
RZ_API void rz_strpool_free(RzStrpool *p)
RZ_API char * rz_strpool_next(RzStrpool *p, int index)
RZ_API char * rz_strpool_alloc(RzStrpool *p, int l)
RZ_API RzStrpool * rz_strpool_new(int sz)
RZ_API int rz_strpool_memcat(RzStrpool *p, const char *s, int len)
ut64(WINAPI *w32_GetEnabledXStateFeatures)()