So it seems that `std.mem.trim` (and likely other functions) don't work correctly on C strings, or don't work correctly if passed on and coerced weirdly. But what helps is converting to a regular zig string/slice using `std.mem.sliceTo(c_string, 0)`. It even makes sense, given that `0` is the nul byte at the end of a c string. Huh. Oh, and we run Go thingy now!!
|
|
||
| 151 |
|
151 |
|
| 152 |
|
152 |
|
| 153 |
|
153 |
|
| 154 |
|
|
|
| 155 |
|
|
|
|
154 |
|
|
|
155 |
|
|
|
156 |
|
|
|
157 |
|
|
|
158 |
|
|
|
159 |
|
|
|
160 |
|
|
|
161 |
|
|
|
162 |
|
|
| 156 |
|
163 |
|
| 157 |
|
164 |
|
| 158 |
|
|
|
|
165 |
|
|
| 159 |
|
166 |
|
| 160 |
|
167 |
|
| 161 |
|
168 |
|
| 162 |
|
169 |
|
| 163 |
|
170 |
|
|
171 |
|
|
| 164 |
|
172 |
|
| 165 |
|
173 |
|
| 166 |
|
174 |
|
| 167 |
|
175 |
|
| 168 |
|
176 |
|
| 169 |
|
177 |
|
|
178 |
|
|
|
179 |
|
|
|
180 |
|
|
|
181 |
|
|
|
182 |
|
|
|
183 |
|
|
|
184 |
|
|
|
185 |
|
|
|
186 |
|
|
|
187 |
|
|
|
188 |
|
|
|
189 |
|
|
|
190 |
|
|
|
191 |
|
|
|
192 |
|
|
|
193 |
|
|
|
194 |
|
|
|
195 |
|
|
|
196 |
|