remove old files
This commit is contained in:
parent
11005587a4
commit
d1444af92f
2 changed files with 0 additions and 40 deletions
26
src/std.c
26
src/std.c
|
@ -1,26 +0,0 @@
|
||||||
#include "std.h"
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
int add(int a, int b) {
|
|
||||||
return a + b;
|
|
||||||
}
|
|
||||||
|
|
||||||
int subtract(int a, int b) {
|
|
||||||
return a - b;
|
|
||||||
}
|
|
||||||
|
|
||||||
int divide(int a, int b) {
|
|
||||||
return a / b;
|
|
||||||
}
|
|
||||||
|
|
||||||
int multiply(int a, int b) {
|
|
||||||
return a * b;
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_str(const char* s) {
|
|
||||||
printf("%s\n", s);
|
|
||||||
}
|
|
||||||
|
|
||||||
void print_num(int n) {
|
|
||||||
printf("%d\n", n);
|
|
||||||
}
|
|
14
src/std.h
14
src/std.h
|
@ -1,14 +0,0 @@
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#ifndef __RUNTIME_H__
|
|
||||||
#define __RUNTIME_H__
|
|
||||||
|
|
||||||
int add(int a, int b);
|
|
||||||
int subtract(int a, int b);
|
|
||||||
int divide(int a, int b);
|
|
||||||
int multiply(int a, int b);
|
|
||||||
|
|
||||||
void print_str(const char* s);
|
|
||||||
void print_num(int n);
|
|
||||||
|
|
||||||
#endif
|
|
Loading…
Add table
Reference in a new issue