cvs commit: src/bin/dd args.c
Nate Lawson
nate at cryptography.com
Sun Aug 1 17:03:42 PDT 2004
Pawel Jakub Dawidek wrote:
> pjd 2004-07-31 15:13:08 UTC
>
> FreeBSD src repository
>
> Modified files:
> bin/dd args.c
> Log:
> Allow for capital letters as size suffixes.
>
> Inspired by: le
> Approved by: green (maintainer)
>
> Revision Changes Path
> 1.39 +20 -8 src/bin/dd/args.c
>
> @@ -361,18 +361,23 @@
>
> mult = 0;
> switch (*expr) {
> + case 'B':
> case 'b':
> mult = 512;
> break;
Instead of doubling the case statements, it's simpler to do
"switch (tolower(*expr))" or toupper().
-Nate
More information about the cvs-src
mailing list