How to make a program against the libcalcconv library


  
You will find in the test folder of the libary source archive a test/example program which uses this library.
Below is listed a light version of this program to make it clearer:
#include <glib.h>
#include <calcconv.h>

int main(int argc, char **argv)
{
    char ti92_varname[9] = { 0 };
    char *utf8;

    utf8 = calcconv_varname_to_utf8(CALC_TI92, ti92_varname, -1);
    printf("UTF-8 varname: <%s> (%i)\n", ti92_varname,
           (int)strlen(ti92_varname));
    g_free(utf8);
}

That's all !

   

Return to the main index