logoalt Hacker News

groundzeros2015today at 12:53 PM3 repliesview on HN

In C you have char*


Replies

rcxdudetoday at 1:27 PM

Which isn't very good for substrings due to the null-termination requirement.

kccqzytoday at 1:00 PM

And the type system does not tell you if you need to call free on this char* when you’re done with it.

pjc50today at 1:10 PM

In C you only have char*.

show 1 reply