Change function to use safer FreeBSD strl* functions
Is it a problem if line is blank (i.e., newline only)? Then, when function returns, (s==NULL).
fname