PostGIS 3.7.0dev-r@@SVN_REVISION@@
Loading...
Searching...
No Matches

◆ test_stringbuffer_append()

static void test_stringbuffer_append ( void  )
static

Definition at line 22 of file cu_stringbuffer.c.

23{
25 const char *str;
26
28 stringbuffer_append(sb, "hello world");
30
31 ASSERT_STRING_EQUAL("hello world", str);
32
34}
#define ASSERT_STRING_EQUAL(o, e)
#define str(s)
const char * stringbuffer_getstring(stringbuffer_t *s)
Returns a reference to the internal string being managed by the stringbuffer.
void stringbuffer_destroy(stringbuffer_t *s)
Free the stringbuffer_t and all memory managed within it.
stringbuffer_t * stringbuffer_create_with_size(size_t size)
Allocate a new stringbuffer_t.
static void stringbuffer_append(stringbuffer_t *s, const char *a)
Append the specified string to the stringbuffer_t.

References ASSERT_STRING_EQUAL, str, stringbuffer_append(), stringbuffer_create_with_size(), stringbuffer_destroy(), and stringbuffer_getstring().

Referenced by stringbuffer_suite_setup().

Here is the call graph for this function:
Here is the caller graph for this function: