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-out.c

19 lines
291 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 == 2) {
port = atoi(argv[1]);
}
else if (argc != 1) {
fprintf(stderr, "Utilisation : %s [port]\n", argv[0]);
return 1;
}
ext_out(port);
return 0;
}