3 ms·
Strings ship with libc because pretty much every language ships with string manipulation routines. You need them to basically do anything that isn’t pure comput
by saagarjha 7y ago
Strings ship with libc because pretty much every language ships with string manipulation routines. You need them to basically do anything that isn’t pure computation.
- _kst_ 7y agolibc includes string functions because C requires string manipulation functions. Other languages may or may not make use of C's string functions.
- saagarjha 7y agoYes, because they ship with their own string type.
- weberc2 7y agoGranted, but pretty much every language also ships with routines for other data structures, and I would think that you need things like lists/slices more often than you need string routines.