docs/Writerside/topics/mempool.h.md

changeset 1653
6a842bd49fea
parent 1652
db8299984bfe
child 1654
5ab3fe0b7859
equal deleted inserted replaced
1652:db8299984bfe 1653:6a842bd49fea
177 177
178 // split the string into lines 178 // split the string into lines
179 // use the memory pool to allocate the target array 179 // use the memory pool to allocate the target array
180 cxstring* lines; 180 cxstring* lines;
181 size_t lc = cx_strsplit_a( 181 size_t lc = cx_strsplit_a(
182 pool->allocator, contentstr, cx_str("\n"), SIZE_MAX, &lines 182 pool->allocator, contentstr, "\n", SIZE_MAX, &lines
183 ); 183 );
184 184
185 // skip the header and parse the remaining data into a linked list 185 // skip the header and parse the remaining data into a linked list
186 // the nodes of the list shall also be allocated by the pool 186 // the nodes of the list shall also be allocated by the pool
187 CxList* datalist = cxLinkedListCreate( 187 CxList* datalist = cxLinkedListCreate(

mercurial