mirror of
https://github.com/devproje/devproje.git
synced 2025-04-22 14:49:52 +09:00
fix: add argument input
This commit is contained in:
parent
8d0b8ea464
commit
e7ec51a4d6
1 changed files with 3 additions and 2 deletions
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue