If you plan to use mapcodes in HTML/Javascript extensively, you may be interested in looking at running an instance of a Mapcode REST API server in your applications landscape. This reduces the ...
mapcodelib/ mapcoder.h <-- Header file with method prototypes and defines for caller. mapcoder.c <-- Implementation of mapcode routines. internal_*.h <-- Internal implementataion details for library.