[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: io:lines() and \0
- From: Sean Conner <sean@...>
- Date: Fri, 21 Feb 2014 17:59:42 -0500
It was thus said that the Great René Rebe once stated:
> Instead of doing it right, look for others who do it worse?
I think it's more an investigation of "how do other languages handle
this?" than trying to look for worse.
C, using fgets(), would print:
but only because of the way C treats NUL in strings.
-spc (getline() and getdelim() would avoid this, I know, but not all
systems that have C have those two functions)