MCPcopy Create free account
hub / github.com/acl-dev/acl / test_buffer_space

Function test_buffer_space

lib_acl/samples/vstring/main.cpp:142–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140}
141
142static void test_buffer_space()
143{
144 ACL_VSTRING *vp = acl_vstring_alloc(1);
145 char *ptr;
146 int i;
147
148 ACL_VSTRING_SPACE(vp, 10);
149 ptr = acl_vstring_str(vp);
150 printf("=========================1====================\n");
151 for (i = 0; i < 10; i++)
152 *ptr++ = 'x';
153 ptr = acl_vstring_str(vp);
154 printf("gets: %d\n", acl_vstream_gets(ACL_VSTREAM_IN, ptr, 10));
155 printf("=========================2====================\n");
156 acl_vstring_free(vp);
157}
158
159static void test_vstring_vsprintf(const char* fmt, ...)
160{

Callers 1

mainFunction · 0.85

Calls 3

acl_vstring_allocFunction · 0.85
acl_vstream_getsFunction · 0.85
acl_vstring_freeFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…