Mechanism for iterating over all supported charsets.
[sgt/charset] / slookup.c
index 7a4d7c2..e49e68c 100644 (file)
--- a/slookup.c
+++ b/slookup.c
@@ -27,3 +27,8 @@ charset_spec const *charset_find_spec(int charset)
 
     return NULL;
 }
+
+int charset_exists(int charset)
+{
+    return charset_find_spec(charset) != NULL;
+}