Allow pointers to append; Fix strconv stuff; new_slice allows for capacity

This commit is contained in:
Ginger Bill
2017-03-02 19:24:34 +00:00
parent 9bc37f4400
commit 9e8c9be1ea
12 changed files with 184 additions and 88 deletions
+2 -2
View File
@@ -1,8 +1,8 @@
new_c_string :: proc(s: string) -> ^byte {
c := new_c_string(byte, s.count+1);
c := new_slice(byte, s.count+1);
copy(c, cast([]byte)s);
c[s.count] = 0;
return c;
return c.data;
}
to_odin_string :: proc(c: ^byte) -> string {