diff options
Diffstat (limited to 'cpukit/libcsupport/src/assoclocalbyname.c')
-rw-r--r-- | cpukit/libcsupport/src/assoclocalbyname.c | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/assoclocalbyname.c b/cpukit/libcsupport/src/assoclocalbyname.c new file mode 100644 index 0000000000..28856afc46 --- /dev/null +++ b/cpukit/libcsupport/src/assoclocalbyname.c @@ -0,0 +1,31 @@ +/* + * assoc.c + * rtems assoc routines + * + * $Id$ + */ + +#if HAVE_CONFIG_H +#include "config.h" +#endif + +#define INSIDE_ASSOC + +#include <rtems.h> +#include <rtems/assoc.h> + +#include <string.h> /* strcat, strcmp */ + +uint32_t rtems_assoc_local_by_name( + const rtems_assoc_t *ap, + const char *name +) +{ + const rtems_assoc_t *nap; + + nap = rtems_assoc_ptr_by_name(ap, name); + if (nap) + return nap->local_value; + + return 0; +} |