diff options
Diffstat (limited to 'src/libtipidee/tipidee_method_tostr.c')
-rw-r--r-- | src/libtipidee/tipidee_method_tostr.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libtipidee/tipidee_method_tostr.c b/src/libtipidee/tipidee_method_tostr.c new file mode 100644 index 0000000..8a3831d --- /dev/null +++ b/src/libtipidee/tipidee_method_tostr.c @@ -0,0 +1,8 @@ +/* ISC license. */ + +#include <tipidee/method.h> + +char const *tipidee_method_tostr (tipidee_method m) +{ + return m < TIPIDEE_METHOD_UNKNOWN ? tipidee_method_conv_table[m].str : 0 ; +} |