add exitcode

This commit is contained in:
rsc 2006-04-08 23:49:08 +00:00
parent 45cb54e8a6
commit 1f2ab849c0

View file

@ -545,3 +545,14 @@ void Memcpy(char *a, char *b, long n)
void *Malloc(ulong n){
return malloc(n);
}
int
exitcode(char *msg)
{
int n;
n = atoi(msg);
if(n == 0)
n = 1;
return n;
}