[Klone-users] io_printf functionality from own C library?

thomas fossati tho at koanlogic.com
Tue Mar 17 04:20:58 EDT 2009


Hi Tommi,

On Mar 16, 2009, at 6:58 PM, Tommi Lundell wrote:
> io_printf() will works ok from mixed code but i want to make dynamic  
> page content from my own C library function.

Given the following hierarchy:

my_webapp/
	Makefile
	vars.mk
	klapp.mk
	webapp/
		www/
			my.kl1
		etc/
			kloned.conf
	mylib/
		Makefile
		my.c
	include/
		my.h


the mylib/Makefile will "include ../vars.mk" and "CFLAGS += $ 
(KLONE_CFLAGS)".

Then, supposed that your API is "int my_io_print(io_t *io, const char  
*s);", your include/my.h will "#include <klone/io.h>".

ciao, t.






More information about the klone-users mailing list