Mirror of
forum.nim-lang.org
index
9365 :: I need to alloc a string
[2022-08-13T01:54:01+02:00]
View Orginal
morturo
(orginal)
[2022-08-13T01:54:01+02:00]
view original
I need to alloc a string of size N, I'm currently using
repeat('\0', n)
to do this, any better way?
ElegantBeef
(orginal)
[2022-08-13T01:55:13+02:00]
view original
newString(n)
morturo
(orginal)
[2022-08-13T01:57:22+02:00]
view original
I'm feeling stupid now
ElegantBeef
(orginal)
[2022-08-13T02:12:03+02:00]
view original
You're in good company.