Post A1CAKNuoO2VUZGRvt2 by kline@cmpwn.com
(DIR) More posts by kline@cmpwn.com
(DIR) Post #A1Bhmt2HNUJQWXBHbE by matrix@gameliberty.club
2020-11-14T11:47:18Z
0 likes, 0 repeats
I thought when you allocate a string in C it's filled with \0. I don't know why I thought that. Makes no sense when you think about it.
(DIR) Post #A1BhtgkTSYoaRW61R2 by icedquinn@blob.cat
2020-11-14T11:48:31.834004Z
1 likes, 0 repeats
@matrix it works like that in Not C :cirno_when:
(DIR) Post #A1BiH5jwhxYEc40aYq by Moon@shitposter.club
2020-11-14T11:52:48.060468Z
3 likes, 0 repeats
@matrix calloc does that.
(DIR) Post #A1CAKNuoO2VUZGRvt2 by kline@cmpwn.com
2020-11-14T17:06:57Z
2 likes, 0 repeats
@matrix use calloc() next time you need to allocate memory for a string, neat trick
(DIR) Post #A1CO5cCyMXHvuXnOYS by matrix@gameliberty.club
2020-11-14T19:41:18Z
0 likes, 0 repeats
@kline Memory allocation is forbidden :feelsbadman:
(DIR) Post #A1KSYFEzsK6cenaa00 by rgk@kiwifarms.cc
2020-11-18T17:09:01.611196Z
1 likes, 0 repeats
@matrix @kline stop using rust