mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
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){
|
||||
return malloc(n);
|
||||
}
|
||||
|
||||
int
|
||||
exitcode(char *msg)
|
||||
{
|
||||
int n;
|
||||
|
||||
n = atoi(msg);
|
||||
if(n == 0)
|
||||
n = 1;
|
||||
return n;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue