Skip to content

Commit c6f94b3

Browse files
authored
Moved version print into its own function
1 parent c004707 commit c6f94b3

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,16 @@
77
#error BUILD_NUMBER must be defined when compiling this source file
88
#endif
99

10+
void print_version(void)
11+
{
12+
printf("\nv%s build %d\n", VERSION, BUILD_NUMBER);
13+
}
14+
1015
int main(void)
1116
{
17+
print_version();
18+
1219
printf("Hello, world!\n");
13-
printf("\nv%s build %d\n", VERSION, BUILD_NUMBER);
1420

1521
FILE *csv = fopen("csv/20221211/abc.csv", "r");
1622

0 commit comments

Comments
 (0)