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. |