3 ms·
This is conceptually confused. There are numerous ways to represent multiple lines in applications that want to operate on them, including separating them with
by jibal 1y ago
This is conceptually confused. There are numerous ways to represent multiple lines in applications that want to operate on them, including separating them with LF, or any other code sequence ... but a better choice is using an array of pointers. As for partial lines, this is a matter of how one is semantically interpreting a string ... numerous C programs operate on lines with the LF stripped, and operate on all sorts of other strings, including substrings of lines.
Anyway, it's moot since UNIX didn't take this approach. I won't respond further.