|
Document of c-modernization-kit (calc) 1.0.0
|
動的リンク、静的リンクを使った関数の呼び出しコマンド。 More...
#include <libcalc.h>#include <libcalcbase.h>#include <console-util.h>#include <stdio.h>#include <stdlib.h>Go to the source code of this file.
Functions | |
| int | main (int argc, char *argv[]) |
| プログラムのエントリーポイント。 | |
動的リンク、静的リンクを使った関数の呼び出しコマンド。
コマンドライン引数から 2 つの整数を受け取り、 calc 関数、add, subtract, multiply, divide 関数を使用して 加算結果を標準出力に出力します。
Definition in file shared-and-static-calc.c.
| int main | ( | int | argc, |
| char * | argv[] ) |
プログラムのエントリーポイント。
| [in] | argc | コマンドライン引数の数。 |
| [in] | argv | コマンドライン引数の配列。 |
使用例:
Definition at line 42 of file shared-and-static-calc.c.
References add(), CALC_KIND_ADD, CALC_KIND_DIVIDE, CALC_KIND_MULTIPLY, CALC_KIND_SUBTRACT, calcHandler(), divide(), multiply(), and subtract().