This commit is contained in:
Your Name 2024-01-03 21:03:09 +03:00
parent 6cd972dc73
commit 544706b305
3 changed files with 1 additions and 38 deletions

View File

@ -12,7 +12,7 @@ int main(int argc, char **argv) {
return 0;
}
}
c
argc -= optind;
argv += optind;
return 0;

View File

@ -1,3 +0,0 @@
#!/bin/sh
project_dir=$(pwd)
echo ./*.c $CFLAGS -o $OUTPUT$(basename $project_dir) | xargs $CC

View File

@ -1,34 +0,0 @@
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <sys/socket.h>
#include <arpa/inet.h>
#include "unused.h"
int connect_or_die(
int main(int argc, char **argv) {
int port = 33137;
unsigned int l_flag;
int opt;
while ((opt = getopt(argc, argv, "p:nl")) != 1) {
switch (opt) {
case 'l':
l_flag = 1;
break;
case 'p':
port = atoi(optarg);
break;
default:
printf("nc\n\t[-p PORT Listen port]\n\t[-u Udp mode] [-l Listen]\n\t[-n Don't do DNS resolution]\n");
return 0;
}
}
argv += optind;
argc -= optind;
return 0;
}