Re:C Strings and my slow descent to madness
by lolcatuser on Thursday April 06, 2023 @06:49PM
(#35475589)
It's entirely possible to write a wrapper function with a short name to convert string literals to actual string objects.
Isn't that much more of a mouthful, and as long as 'my_function' knows to free it, then you're A-OK! The only trouble is '$()' isn't legal in standard C, so a real solution would have to be something like 'str()'.
[ Parent
| on HN ]
There are no comments on this comment yet.