Hardware Design: SIE
Sign in or create your account | Project List | Help
Hardware Design: SIE Git Source Tree
Root/
| 1 | #include <stdio.h> |
| 2 | #include <string.h> |
| 3 | #include "liba.h" |
| 4 | |
| 5 | #define ENTER do{printf("in %s \n" ,__FUNCTION__);}while(0); |
| 6 | |
| 7 | void lib_a_f_1() |
| 8 | { |
| 9 | ENTER |
| 10 | } |
| 11 | |
| 12 | int lib_a_f_2(int a , int b) |
| 13 | { |
| 14 | ENTER |
| 15 | return a * b ; |
| 16 | } |
| 17 | |
| 18 | |
| 19 | int lib_a_f_3(const char *s) |
| 20 | { |
| 21 | ENTER |
| 22 | return strlen(s); |
| 23 | } |
| 24 | |
| 25 | int lib_a_f_4(Point *in_t) |
| 26 | { |
| 27 | ENTER |
| 28 | return in_t->a * in_t->b ; |
| 29 | } |
| 30 | |
| 31 | |
| 32 | int lib_a_f_5(Point *out_t) |
| 33 | { |
| 34 | ENTER |
| 35 | |
| 36 | out_t->a = 20; |
| 37 | out_t->b = 30; |
| 38 | |
| 39 | return 0; |
| 40 | } |
| 41 |
Branches:
master
