src/string.c

changeset 1644
bbe3199e37fc
parent 1620
bf5d647f939d
equal deleted inserted replaced
1643:045894204ca5 1644:bbe3199e37fc
62 cxFree(alloc, str->ptr); 62 cxFree(alloc, str->ptr);
63 str->ptr = NULL; 63 str->ptr = NULL;
64 str->length = 0; 64 str->length = 0;
65 } 65 }
66 66
67 int cx_strcpy_a( 67 int cx_strcpy_a_(
68 const CxAllocator *alloc, 68 const CxAllocator *alloc,
69 cxmutstr *dest, 69 cxmutstr *dest,
70 cxstring src 70 cxstring src
71 ) { 71 ) {
72 if (cxReallocate(alloc, &dest->ptr, src.length + 1)) { 72 if (cxReallocate(alloc, &dest->ptr, src.length + 1)) {

mercurial