13 lines
253 B
C
13 lines
253 B
C
#include <stdio.h>
|
|
#include <stdlib.h>
|
|
|
|
int main(int argc, char *argv[]) {
|
|
if (argc == 2) {
|
|
int code = strtol(argv[1], NULL, 0);
|
|
return code;
|
|
} else {
|
|
printf("Requires exactly one argument\n");
|
|
return -1;
|
|
}
|
|
}
|