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

Why is C 'supposed to be primitive?' If C was supposed to be so primitive, there wouldn't even be 'str' functions, it would just be memcpy functions and you would be responsible yourself for keeping track of null terminators.

C just needs a bolstered set of string-handling functions. Much like C++ has the Boost libraries.




Yeah, by "primitive", I meant "low level". (The strxxx functions aren't part of the language, after all. Like you say, one could write a better, more "object oriented" string library for C.)


GLib supposedly has some pretty solid C base libraries for string handling and other common tasks.

http://library.gnome.org/devel/glib/2.28/glib-String-Utility...




Join us for AI Startup School this June 16-17 in San Francisco!

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

Search: