「🏗️」 wip: added the print message
This commit is contained in:
19
src/help.c
19
src/help.c
@ -1,13 +1,22 @@
|
||||
#include <help.h>
|
||||
|
||||
#include <stdint.h>
|
||||
#include <stdio.h>
|
||||
|
||||
struct options {
|
||||
char opt;
|
||||
char *desc;
|
||||
};
|
||||
void print_help(void) {
|
||||
uint16_t i = 0;
|
||||
|
||||
void print_help(void) {}
|
||||
printf("Usage: ping [OPTION...] HOST ...\n");
|
||||
printf("Send ICMP ECHO_REQUEST packets to network hosts.\n\n");
|
||||
|
||||
while (i < OPT_NB) {
|
||||
printf(" -%c, --%s:\t %s\n", options[i].opt, options[i].name, options[i].doc);
|
||||
i++;
|
||||
}
|
||||
printf("\nMandatory or optional arguments to long options are also mandatory "
|
||||
"or optional\nfor any corresponding short options.\n\n");
|
||||
printf("Report bugs to <noreply@adjoly.fr> (pls don't).\n");
|
||||
}
|
||||
|
||||
void print_no_host(char *av) {
|
||||
printf("%s: missing host operand\n", av);
|
||||
|
Reference in New Issue
Block a user