strbuffer_value: Return a read-only pointer rather than duplicating the value

This commit is contained in:
Petri Lehtinen
2009-06-13 22:26:45 +03:00
parent 3e0134782b
commit 8c697312e4
3 changed files with 4 additions and 4 deletions

View File

@@ -10,7 +10,7 @@ typedef struct {
void strbuffer_init(strbuffer_t *strbuff);
void strbuffer_close(strbuffer_t *strbuff);
char *strbuffer_value(strbuffer_t *strbuff);
const char *strbuffer_value(strbuffer_t *strbuff);
char *strbuffer_steal_value(strbuffer_t *strbuff);
int strbuffer_append(strbuffer_t *strbuff, const char *string);