Skip to content

Commit 209f62d

Browse files
committed
fix: code example
1 parent 7179019 commit 209f62d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ compile:
22
gcc -o main code/main.c
33

44
run: compile
5-
./main
5+
./main 123456789

code/main.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ int main(int argc, char *argv[])
1414
// a prompt how to execute the program...
1515
if (argc < 2)
1616
{
17-
printf("strcpy() NOT executed....\n");
18-
printf("Syntax: %s <characters>\n", argv[0]);
19-
exit(0);
17+
printf("strcpy() NOT executed....\n");
18+
printf("Syntax: %s <characters>\n", argv[0]);
19+
exit(0);
2020
}
2121

2222
// copy the user input to mybuffer, without any

0 commit comments

Comments
 (0)