123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081 |
- #ifndef REWORD_SOURCE
- #define REWORD_SOURCE
- #include <unistd.h>
- #include <string.h>
- #include "../tools/symbol.h"
- char const * reword (code_t code, struct _code_ const list [], size_t size)
- {
- struct _code_ const * item = list;
- while ((unsigned)(item - list) < size)
- {
- if (item->code == code)
- {
- return (item->name);
- }
- item++;
- }
- return (NULL);
- }
- #endif
|