aboutsummaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authorM.Gergő2020-05-17 07:12:14 +0200
committerM.Gergő2020-05-17 07:12:14 +0200
commit2ad766df8f2bd45b7c0feff2fe19fc5f67b80842 (patch)
tree0ea3fd180a5cf260d1a780168f03d95b37fe472d /src/main.c
parentcd28b1ec07c8ad615078a1ec55f4f9dfc6b92504 (diff)
downloadlightconfini-2ad766df8f2bd45b7c0feff2fe19fc5f67b80842.tar.gz
lightconfini-2ad766df8f2bd45b7c0feff2fe19fc5f67b80842.zip
New Read function (Own)
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/main.c b/src/main.c
index 3f7af09..7c4b0d5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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;