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