From 34a8ff18ad9ff17813047247ae097daf5c6a7a56 Mon Sep 17 00:00:00 2001 From: jackfiled Date: Sun, 8 May 2022 22:01:09 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BA=86power=E5=87=BD?= =?UTF-8?q?=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- include/rail.h | 2 ++ src/rail.c | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/include/rail.h b/include/rail.h index 02f237d..bc55e32 100644 --- a/include/rail.h +++ b/include/rail.h @@ -40,4 +40,6 @@ rail_node_t *FindNode(int id); int add(int a, int b); +int power(int a, int b); + #endif //AUTO_PILOT_BUS_RAIL_H diff --git a/src/rail.c b/src/rail.c index 0dd3efd..a73e926 100644 --- a/src/rail.c +++ b/src/rail.c @@ -5,4 +5,9 @@ rail_node_t *rails; int add(int a, int b) { return a+ b; +} + +int power(int a, int b) +{ + return a*b; } \ No newline at end of file