C strings suck!

utzoo!decvax!ittvax!swatt utzoo!decvax!ittvax!swatt
Fri May 13 09:38:56 AEST 1983

This is an oft-heard complaint about C.  If you really require dynamic
strings supported directly in the language, pick another language.
Otherwise make the best of it you can with an appropriate library
package.  I just perused my old USENET net.sources archive and came
up with:

	From sdcarl!rusty Wed Jun  9 22:31:20 1982
	Subject: charb
	Newsgroups: net.sources

		====> charb.3 <====

		cballoc, cbrealloc, fgetcb, makcb, cbbuf, cbmax, cbcat,
		cbncat, cbcpy, cbncpy \- operations for variable length strings
	<and so on ...>

I'm sure there are several out there besides this one.

	- Alan S. Watt

More information about the Comp.lang.c mailing list