19 lines
291 B
C
19 lines
291 B
C
|
#include "extremite.h"
|
|||
|
|
|||
|
#include <stdio.h>
|
|||
|
#include <stdlib.h>
|
|||
|
|
|||
|
|
|||
|
int main(int argc, char *argv[argc]) {
|
|||
|
int port = 123;
|
|||
|
if (argc == 2) {
|
|||
|
port = atoi(argv[1]);
|
|||
|
}
|
|||
|
else if (argc != 1) {
|
|||
|
fprintf(stderr, "Utilisation : %s [port]\n", argv[0]);
|
|||
|
return 1;
|
|||
|
}
|
|||
|
ext_out(port);
|
|||
|
return 0;
|
|||
|
}
|