/usr/share/doc/libticonv-dev/html/htlib.html is in libticonv-dev 1.1.4-3.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Making programs against the TiCables library</title>
<style type="TEXT/CSS">
<!--
BODY {FONT-FAMILY: Verdana,Arial,Helvetica,Sans-Serif; BACKGROUND-COLOR: #FFFFFF; FONT-SIZE: 10pt}
TD {FONT-SIZE: 10pt}
H1 {FONT-SIZE: 18pt}
H3 {FONT-SIZE: 13pt}
PRE {FONT-FAMILY: Courier New; FONT-SIZE: 9pt}
CODE {FONT-FAMILY: Courier New; FONT-SIZE: 9pt}
-->
</style>
</head>
<body bgcolor="#ffffff" text="#000000" alink="#ff0000" vlink="#0000ff">
<h1> How to make a program against the ticonv library </h1>
<hr>
<pre> <em> </em></pre>
You will find in the <i>test</i> folder of the libary source archive a
test/example program which uses this library.<br>
Below is listed a light version of this program to make it clearer:
<pre>#include <stdio.h>
#include <string.h>
#include <glib.h>
#include <ticonv.h>
int main(int argc, char **argv)
{
char ti92_varname[9] = { 0 };
char *utf8;
utf8 = ticonv_varname_to_utf8(CALC_TI92, ti92_varname, -1);
printf("UTF-8 varname: <%s> (%i)\n", ti92_varname, (int)strlen(ti92_varname));
g_free(utf8);
}</pre>
That's all !<br><br>
<strong>NOTE</strong>: for this example to work, you probably have to add compiler options related to the include path and library path, e.g.
<pre>gcc -I/usr/include/tilp2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Os -g -Wall -W <...>.c -o <...> -lglib-2.0 -lticonv</pre>
or better
<pre>gcc -Os -g -Wall -W `pkg-config --cflags --libs ticonv` ticonv.c -o ticonv</pre>
<h3><a href="index.html">Return to the main index</a> </h3>
</body>
</html>
|