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