Skip to content

Latest commit

 

History

History
43 lines (26 loc) · 1.13 KB

README.md

File metadata and controls

43 lines (26 loc) · 1.13 KB

ini_parse(3)

NAME

ini_parse - simple C ini parser without context

SYNOPSIS

#include "ini.h"

typedef int ini_section_cb_t(char *, void *);

typedef int ini_property_cb_t(char *, char *, void *);

int ini_parse(int fd, ini_section_cb_t *sec_cb ,ini_property_cb_t *prop_cb , void *data);

DESCRIPTION

ini_parse is a simple C ini parser function without context.

It reads and parses data from file descriptor fd. Then it calls back either sec_cb function when a section is met or prop_cb when a property is met.

EXAMPLES

test-ini.c is a good example of how to use the ini_parse function.

AUTHOR

Written by Vivien DIDELOT vivien.didelot@savoirfairelinux.com and Gaël PORTAY gael.portay@savoirfairelinux.com

COPYRIGHT

Copyright (c) 2017 Vivien DIDELOT and Gaël PORTAY

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.