ulib uprintf to pipe not termdev, ulib Add stringbuffer and linearlist, tb Capture subshell output

This commit is contained in:
2025-10-01 20:08:44 +02:00
parent 0e4a35eb86
commit 62cf07afc7
11 changed files with 210 additions and 13 deletions

View File

@ -0,0 +1,15 @@
#ifndef ULIB_STRING_STRINGBUFFER_H_
#define ULIB_STRING_STRINGBUFFER_H_
typedef struct {
size_t count;
size_t capacity;
char *data;
} StringBuffer;
void stringbuffer_init(StringBuffer *sb);
void stringbuffer_free(StringBuffer *sb);
void stringbuffer_appendchar(StringBuffer *sb, char c);
void stringbuffer_appendcstr(StringBuffer *sb, char *cstr);
#endif // ULIB_STRING_STRINGBUFFER_H_