Document of c-modernization-kit (calc) 1.0.0
Loading...
Searching...
No Matches
libcalcbase.h
Go to the documentation of this file.
1
16
17#ifndef LIBCALCBASE_H
18#define LIBCALCBASE_H
19
20#include <libcalc_const.h>
21
22#ifdef __cplusplus
23extern "C"
24{
25#endif /* __cplusplus */
26
51 extern int add(const int a, const int b, int *result);
52
77 extern int subtract(const int a, const int b, int *result);
78
103 extern int multiply(const int a, const int b, int *result);
104
128 extern int divide(const int a, const int b, int *result);
129
130#ifdef __cplusplus
131}
132#endif /* __cplusplus */
133
134#endif /* LIBCALCBASE_H */
計算ライブラリの定数ファイル。
int subtract(const int a, const int b, int *result)
2 つの整数を減算します。
Definition subtract.c:20
int divide(const int a, const int b, int *result)
2 つの整数を除算します。
Definition divide.c:20
int multiply(const int a, const int b, int *result)
2 つの整数を乗算します。
Definition multiply.c:20
int add(const int a, const int b, int *result)
2 つの整数を加算します。
Definition add.c:20