Rev 2 |
Blame |
Compare with Previous |
Last modification |
View Log
| RSS feed
#include <string.h>
#include <kernel/kern.h>
#if 0
unsigned long simple_strtoul
(const char *cp
,char **endp
,unsigned int base
)
{
unsigned long result
= 0,value
;
if (!base
) {
base
= 10;
if (*cp
== '0') {
base
= 8;
cp
++;
if ((*cp
== 'x') && isxdigit(cp
[1])) {
cp
++;
base
= 16;
}
}
}
while (isxdigit(*cp
) && (value
= isdigit(*cp
) ? *cp
-'0' : (islower(*cp
)
? toupper(*cp
) : *cp
)-'A'+10) < base
) {
result
= result
*base
+ value
;
cp
++;
}
if (endp
)
*endp
= (char *)cp
;
return result
;
}
#endif
void panic_stub
(void)
{
cprintf
("Panic: stub called!!!\n");
sys_abort
(200); /* Just a number... */
}