Subject: Re: osrelease.sh and param.h - take 2
To: Simon Burge <email@example.com>
From: Chris G. Demetriou <firstname.lastname@example.org>
Date: 05/05/1999 20:42:55
Simon Burge <email@example.com> writes:
> I can't spend any more time on this today (real work - dang!), but
> here's something that works for all the cases I could think off of the
> top of my head. There's no error checking, so 1.2B.3_ALPHA and other
> magically versions are possible. I'll come back to it tomorrow if no
> one has beaten it to a pulp in the meantime...
Why don't you do / and % with powers of 10 to extract the right bits?
that seems ... easier than the field separation bits you used...
Chris Demetriou - firstname.lastname@example.org - http://www.netbsd.org/People/Pages/cgd.html
Disclaimer: Not speaking for NetBSD, just expressing my own opinion.