diff options
author | M.Gergő | 2020-05-17 07:12:14 +0200 |
---|---|---|
committer | M.Gergő | 2020-05-17 07:12:14 +0200 |
commit | 2ad766df8f2bd45b7c0feff2fe19fc5f67b80842 (patch) | |
tree | 0ea3fd180a5cf260d1a780168f03d95b37fe472d /src/main.c | |
parent | cd28b1ec07c8ad615078a1ec55f4f9dfc6b92504 (diff) | |
download | lightconfini-2ad766df8f2bd45b7c0feff2fe19fc5f67b80842.tar.gz lightconfini-2ad766df8f2bd45b7c0feff2fe19fc5f67b80842.zip |
New Read function (Own)
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -6,10 +6,15 @@ /* #include "inirw_internal.h" */ #include "lightconfini.h" +#include "main.h" #define main_c int lens=16, lenp=16, lenv=16, lenc=24, elen=55; +lcinimyReadFunc mylciniReadOutFunct=myfunct; +/*lcinimyReadFunc mylciniReadOutFunct=NULL;*/ + + void myfunct(int line, int linelen, char *section, int sectionlen, char *param, int paramlen, char *value, int valuelen, char *comment, int commentlen, char *error, int errorlen ){ @@ -17,10 +22,8 @@ void myfunct(int line, int linelen, char *section, int sectionlen, char *param, printf("LN: %d,\tLL: %d,\tSC: %*s,%2d P: %*s,%2d V: %*s,%2d C: %*s,%2d ER: %*s \n", line, linelen, lens, section,sectionlen, lenp, param, paramlen, lenv, value, valuelen, lenc, comment, commentlen, elen, error); } -/*lcinimyReadFunc mylciniReadOutFunct=myfunct;*/ -lcinimyReadFunc mylciniReadOutFunct=NULL; - + int main(int argc, char* argv[]){ int len; |