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);
@ -225,6 +226,6 @@ Hello, World!
## HATE THINGS ## HATE THINGS
<div align="left"> <div align="left">
<img style="margin: 10px" src="https://profilinator.rishav.dev/skills-assets/cplusplus-original.svg" alt="C++" height="50" /> <img style="margin: 10px" src="https://profilinator.rishav.dev/skills-assets/cplusplus-original.svg" alt="C++" height="50"/>
<img style="margin: 10px" src="https://forums.skunity.com/styles/default/xenforo/logo.og.png" alt="Skript" height="50" /> <img style="margin: 10px" src="https://forums.skunity.com/styles/default/xenforo/logo.og.png" alt="Skript" height="50"/>
</div> </div>