3 ms·
Best solution would be something like SDNV. Short strings (up to 127 characters) have no length penalty and you can handle strings of any length. I don't thin
by jandrese 9y ago
Best solution would be something like SDNV. Short strings (up to 127 characters) have no length penalty and you can handle strings of any length.
I don't think these were invented back when K&R were designing C, but it feels like something any smart computer language designer could invent if the need arose.