Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by groundzeros2015

9 hours ago

In C you have char*

4 comments

groundzeros2015

Reply

rcxdude  8 hours ago

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

kccqzy  9 hours ago

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

pjc50  9 hours ago

In C you only have char*.

  • tosti  4 hours ago

    wchar exists.

    (And the possibility to implement whatever you want, ofc.)

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities