Date: Fri, 30 Oct 1998 10:14:45 -0800 (PST) From: Archie Cobbs <archie@whistle.com> To: mike@smith.net.au (Mike Smith) Cc: hackers@FreeBSD.ORG Subject: Re: scanf in the kernel? Message-ID: <199810301814.KAA16349@bubba.whistle.com> In-Reply-To: <199810300813.AAA01726@dingo.cdrom.com> from Mike Smith at "Oct 30, 98 00:13:48 am"
next in thread | previous in thread | raw e-mail | index | archive | help
Mike Smith writes: > Just wondering what the general feeling would be about having scanf in > the kernel? As we move towards more abstract representations of things > (eg. device names), it's becoming more important to be able to parse > strings inside the kernel. > > Doing this in hand-rolled code is tedious, error-prone and results in > code that can be hard to read and maintain (as everyone does it their > own way). > > If this isn't totally repulsive, I'll roll a somewhat smaller version > of the libc vfscanf for general approval. I think you may even get a net savings after replacing all the instances where scanf() could be used... we certainly have had to do it manually in some custom drivers here. -Archie ___________________________________________________________________________ Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199810301814.KAA16349>