|
Document of c-modernization-kit (calc) 1.0.0
|
divide 関数の実装ファイル。 More...
Go to the source code of this file.
Functions | |
| int | divide (const int a, const int b, int *result) |
| 2 つの整数を除算します。 | |
divide 関数の実装ファイル。
2 つの整数を除算する関数を提供します。
Definition in file divide.c.
| int divide | ( | const int | a, |
| const int | b, | ||
| int * | result ) |
2 つの整数を除算します。
| [in] | a | 被除数。 |
| [in] | b | 除数。 |
| [out] | result | 計算結果を格納するポインタ。 |
この関数は 2 つの整数を受け取り、その商を result に格納します。 整数除算のため、小数点以下は切り捨てられます。
Definition at line 20 of file divide.c.
References CALC_ERROR, and CALC_SUCCESS.
Referenced by calcHandler(), and main().