diff options
author | Mattias Andrée <maandree@kth.se> | 2021-09-09 20:56:12 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@kth.se> | 2021-09-09 20:56:12 +0200 |
commit | c70673f4e73c7a071cff12735789eb6d45380d74 (patch) | |
tree | d222c092b7695d3b7c6bb775c9f5696eb599df0b /libnumtext_card2ord.c | |
parent | misc (diff) | |
download | libnumtext-c70673f4e73c7a071cff12735789eb6d45380d74.tar.gz libnumtext-c70673f4e73c7a071cff12735789eb6d45380d74.tar.bz2 libnumtext-c70673f4e73c7a071cff12735789eb6d45380d74.tar.xz |
Add libnumtext_card2ord
Signed-off-by: Mattias Andrée <maandree@kth.se>
Diffstat (limited to '')
-rw-r--r-- | libnumtext_card2ord.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libnumtext_card2ord.c b/libnumtext_card2ord.c new file mode 100644 index 0000000..eb99156 --- /dev/null +++ b/libnumtext_card2ord.c @@ -0,0 +1,18 @@ +/* See LICENSE file for copyright and license details. */ +#include "common.h" + + +ssize_t +libnumtext_card2ord(char *outbuf, size_t outbuf_size, const char *num, size_t num_len, + enum libnumtext_language lang, uint32_t flags, ...) +{ + switch (lang) { + + case LIBNUMTEXT_SWEDISH: + return libnumtext_card2ord_swedish__(outbuf, outbuf_size, num, num_len, flags); + + default: + errno = EINVAL; + return -1; + } +} |