* match_value takes a table and a value, returns the string associated * with the value (NULL in case of failure). */
| 732 | * with the value (NULL in case of failure). |
| 733 | */ |
| 734 | char const * |
| 735 | match_value(struct _s_x *p, int value) |
| 736 | { |
| 737 | for (; p->s != NULL; p++) |
| 738 | if (p->x == value) |
| 739 | return p->s; |
| 740 | return NULL; |
| 741 | } |
| 742 | |
| 743 | size_t |
| 744 | concat_tokens(char *buf, size_t bufsize, struct _s_x *table, |
no outgoing calls
no test coverage detected