docs/Writerside/topics/mempool.h.md

changeset 1654
5ab3fe0b7859
parent 1653
6a842bd49fea
equal deleted inserted replaced
1653:6a842bd49fea 1654:5ab3fe0b7859
171 // read the file into the buffer and turn it into a string 171 // read the file into the buffer and turn it into a string
172 cx_stream_copy( 172 cx_stream_copy(
173 f, content, (cx_read_func) fread, cxBufferWriteFunc 173 f, content, (cx_read_func) fread, cxBufferWriteFunc
174 ); 174 );
175 fclose(f); 175 fclose(f);
176 cxstring contentstr = cx_strn(content->space, content->size); 176 cxstring contentstr = cx_bstr(content);
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(

mercurial