Add README

This commit is contained in:
Lassi Kortela 2024-05-12 00:11:25 +03:00
parent 7f076e8069
commit 31b6f9d596
1 changed files with 22 additions and 0 deletions

22
README.md Normal file
View File

@ -0,0 +1,22 @@
# SRFI 238 - portable string-based implementation
This is an implementation SRFI 238 based around the following C
interface.
```
char *codeset_list(void);
char *codeset_numbers(const char *codeset);
char *codeset_symbols(const char *codeset);
char *codeset_messages(const char *codeset);
```
Each function returns a newline-delimited C string.
The idea is to make the interface so simple that it can be wrapped
easily using the FFI of any Scheme implementation that has one.
(Non-Scheme languages like Common Lisp or ML could make use of the
same C code.)
The downside is that memory usage is not optimal. All strings are
retrieved from C at once, and half of the string handling is done in
Scheme.