fix: add argument input

This commit is contained in:
WH64 2022-05-20 15:10:40 +09:00
parent 8d0b8ea464
commit e7ec51a4d6

View file

@ -7,6 +7,7 @@
int main(int argc, char **argv) { int main(int argc, char **argv) {
char *str = malloc(sizeof(char) * MAX_MESSAGE_SIZE); char *str = malloc(sizeof(char) * MAX_MESSAGE_SIZE);
str = argv[1];
puts(str); puts(str);
free(str); free(str);