5
Line | |
---|
1 | /** |
---|
2 | * @file |
---|
3 | * |
---|
4 | * @brief RTEMS Associate Name by Local |
---|
5 | * @ingroup Associativity |
---|
6 | */ |
---|
7 | |
---|
8 | #if HAVE_CONFIG_H |
---|
9 | #include "config.h" |
---|
10 | #endif |
---|
11 | |
---|
12 | #define INSIDE_ASSOC |
---|
13 | |
---|
14 | #include <rtems.h> |
---|
15 | #include <rtems/assoc.h> |
---|
16 | |
---|
17 | #include <string.h> /* strcat, strcmp */ |
---|
18 | |
---|
19 | const char *rtems_assoc_name_by_local( |
---|
20 | const rtems_assoc_t *ap, |
---|
21 | uint32_t local_value |
---|
22 | ) |
---|
23 | { |
---|
24 | const rtems_assoc_t *nap; |
---|
25 | |
---|
26 | nap = rtems_assoc_ptr_by_local(ap, local_value); |
---|
27 | if (nap) |
---|
28 | return nap->name; |
---|
29 | |
---|
30 | return rtems_assoc_name_bad(local_value); |
---|
31 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.