Hacker News new | past | comments | ask | show | jobs | submit login

> Unlike C++ the C language takes its freestanding mode seriously

You can easily implement a stack allocated C++ string:

https://forums.4fips.com/viewtopic.php?f=3&t=1075

You can also wrap a const char* in a string_view which has a length.




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: