2 * Copyright (c) 2004 Michael Schroeder (mls@suse.de)
4 * This program is licensed under the BSD license, read LICENSE.BSD
5 * for further information
13 /****************************************************************
19 unsigned int cpion(char *s)
23 for (i = 0; i < 8; i++, s++)
24 if (*s >= '0' && *s <= '9')
25 r = (r << 4) | (*s - '0');
26 else if (*s >= 'a' && *s <= 'f')
27 r = (r << 4) | (*s - ('a' - 10));
28 else if (*s >= 'A' && *s <= 'F')
29 r = (r << 4) | (*s - ('a' - 10));
32 fprintf(stderr, "bad cpio archive\n");