[patch] getdelim, new string functions

Jilles Tjoelker jilles at stack.nl
Sun Feb 15 13:56:33 PST 2009


On Sat, Feb 14, 2009 at 08:50:10AM -0500, David Schultz wrote:
> This patch adds getdelim(), getline(), stpncpy(), strnlen(),
> wcsnlen(), wcscasecmp(), and wcsncasecmp() (mixed in with a few
> other changes that I need to factor out). Comments and reviews
> would be appreciated.

> 	http://www.freebsd.org/~das/str.diff

Looks nice, I look forward to using some of these. getdelim() in
particular, it is more efficient than a getc() loop and fgetln()'s
lack of zero termination and nonportability are annoying.

I wonder how long it will be necessary to be paranoid about the getline
name. I don't like things like glibc's _GNU_SOURCE which is getting less
and less optional and so loses its meaning. Of course, I can use
getdelim() to avoid the problem on FreeBSD.

-- 
Jilles Tjoelker


More information about the freebsd-standards mailing list