This repository has been archived on 2019-11-14. You can view files and clone it, but cannot push or open issues or pull requests.
rip-vm2/partage/src/ext-in.c

19 lines
309 B
C
Raw Normal View History

2019-10-25 23:53:43 +02:00
#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;
}