Document of c-modernization-kit (calc) 1.0.0
Loading...
Searching...
No Matches
subtract.c
Go to the documentation of this file.
1
15
16#include <libcalcbase.h>
17#include <stddef.h>
18
19/* doxygen コメントは、ヘッダに記載 */
20int subtract(const int a, const int b, int *result)
21{
22 return add(a, -1 * b, result); /* 再帰的な関数呼び出しの実装例として add を呼ぶ */
23}
計算ライブラリ (静的リンク用) のヘッダーファイル。
int add(const int a, const int b, int *result)
2 つの整数を加算します。
Definition add.c:20
int subtract(const int a, const int b, int *result)
2 つの整数を減算します。
Definition subtract.c:20