From c70673f4e73c7a071cff12735789eb6d45380d74 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Thu, 9 Sep 2021 20:56:12 +0200 Subject: Add libnumtext_card2ord MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- libnumtext_card2ord.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libnumtext_card2ord.c (limited to 'libnumtext_card2ord.c') 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; + } +} -- cgit v1.2.3-70-g09d2