src/ucx/string.h

changeset 328
2bf1da3c411e
parent 325
a3e63cb21e20
child 363
8175ba2b3bcb
equal deleted inserted replaced
327:fbc33813265b 328:2bf1da3c411e
122 * @return an immutable (scstr_t) version of the provided string. 122 * @return an immutable (scstr_t) version of the provided string.
123 */ 123 */
124 inline scstr_t s2scstr(sstr_t s) { 124 inline scstr_t s2scstr(sstr_t s) {
125 scstr_t c; 125 scstr_t c;
126 c.ptr = s.ptr; 126 c.ptr = s.ptr;
127 c.length = s.ptr; 127 c.length = s.length;
128 return c; 128 return c;
129 } 129 }
130 130
131 /** 131 /**
132 * One of two type adjustment functions that return a scstr_t. 132 * One of two type adjustment functions that return a scstr_t.

mercurial