add exitcode
This commit is contained in:
parent
45cb54e8a6
commit
1f2ab849c0
1 changed files with 11 additions and 0 deletions
|
|
@ -545,3 +545,14 @@ void Memcpy(char *a, char *b, long n)
|
||||||
void *Malloc(ulong n){
|
void *Malloc(ulong n){
|
||||||
return malloc(n);
|
return malloc(n);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int
|
||||||
|
exitcode(char *msg)
|
||||||
|
{
|
||||||
|
int n;
|
||||||
|
|
||||||
|
n = atoi(msg);
|
||||||
|
if(n == 0)
|
||||||
|
n = 1;
|
||||||
|
return n;
|
||||||
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue