printf example rewritten
All checks were successful
ci/woodpecker/push/build Pipeline was successful
All checks were successful
ci/woodpecker/push/build Pipeline was successful
This commit is contained in:
parent
bde2e44f89
commit
dc07b91a12
3 changed files with 22 additions and 8 deletions
|
@ -1,7 +1,13 @@
|
|||
#include <stdio.h>
|
||||
#include "hello.h"
|
||||
#include "print_example.h"
|
||||
|
||||
int main() {
|
||||
hello();
|
||||
|
||||
print_example();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
/**
|
||||
gcc main.c print_example.c -o print_example
|
||||
**/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include <stdio.h>
|
||||
#include "print_example.h"
|
||||
|
||||
int print_example()
|
||||
{
|
||||
|
|
8
c-basic/print_example.h
Normal file
8
c-basic/print_example.h
Normal file
|
@ -0,0 +1,8 @@
|
|||
#ifndef PRINT_EXAMPLE_H
|
||||
#define PRINT_EXAMPLE_H
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
int print_example();
|
||||
|
||||
#endif
|
Loading…
Add table
Add a link
Reference in a new issue