FOA C Library

This is a C library implementation of the FOA encoding, designed to be an alternative to XML for data exchange between i.e. web services. It can also be useful as a general encoding format similar to JSON.


The memory footprint of the library is small because it will never use more memory than required to hold the longest single line of data to decode.


The library can decode or encoded data using either a memory buffer (char *) or an file stream (FILE *). No validation is performed except for some rudimentary checks.

Thread Safe

The library don't use any global variables or shared state, this makes it thread safe.

The C language logotype