feat: add files
This commit is contained in:
@@ -5,6 +5,7 @@ target/
|
||||
99.htm
|
||||
wasm/pkg/
|
||||
node_modules/
|
||||
*.o
|
||||
|
||||
# These are backup files generated by rustfmt
|
||||
**/*.rs.bk
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
#include <stdio.h>
|
||||
|
||||
void greet(const char *name) {
|
||||
printf("Hello, %s!\n", name);
|
||||
}
|
||||
Executable
+1
@@ -0,0 +1 @@
|
||||
gcc -Wall -c greet.c
|
||||
@@ -0,0 +1,6 @@
|
||||
extern void greet(const char *name);
|
||||
|
||||
int main(void) {
|
||||
greet("stars");
|
||||
return 0;
|
||||
}
|
||||
+2
@@ -0,0 +1,2 @@
|
||||
gcc -Wall -c main-greet.c
|
||||
gcc main-greet.o greet.o -o main-greet
|
||||
Reference in New Issue
Block a user