diff options
author | M.Gergő | 2020-05-26 23:16:26 +0200 |
---|---|---|
committer | M.Gergő | 2020-05-26 23:16:26 +0200 |
commit | 5872c7cb7620a60b0921c6936d7bf5fad3dd94ff (patch) | |
tree | 578780c96c1f3910c78ed7e9bf0e42df14dc90db /src/main.c | |
parent | 764ba227cc4a07d4e40bc4a930459ab14078c43d (diff) | |
download | lightconfini-5872c7cb7620a60b0921c6936d7bf5fad3dd94ff.tar.gz lightconfini-5872c7cb7620a60b0921c6936d7bf5fad3dd94ff.zip |
Static linking
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 25 |
1 files changed, 14 insertions, 11 deletions
@@ -85,7 +85,7 @@ int main(int argc, char* argv[]){ printf("\n\nFUNC: lciniReadOutOwn():\n\n"); - lciniReadOutOwn(filename); + /* lciniReadOutOwn(filename); */ @@ -117,18 +117,21 @@ int main(int argc, char* argv[]){ printf("\n\nFUNC: lciniGetFromFileShort():\n\n"); - sret2 = lciniGetFromFileShort(filename, search_sec, search_par, NULL); - printf("SR: '%s', %d, t: ",sret2->ret,sret2->retlen); - if(sret2->retType == lcini_shortretEMPTY){ - printf("sret_empty\n"); - }else if(sret2->retType == lcini_shortretERROR){ - printf("sret_err\n"); - } else { - printf("sret_ok\n"); + sret2 = lciniGetFromFileShort(filename, search_sec, search_par, NULL); + printf("---\n"); + if(sret2){ + printf("SR: '%s', %d, t: ",sret2->ret,sret2->retlen); + if(sret2->retType == lcini_shortretEMPTY){ + printf("sret_empty\n"); + }else if(sret2->retType == lcini_shortretERROR){ + printf("sret_err\n"); + } else { + printf("sret_ok\n"); + } } printf("\n\nFUNC: lciniGetFromFileStr():\n\n"); - r=lciniGetFromFileStr(filename, search_sec, search_par, buff6, 100); + /* r=lciniGetFromFileStr(filename, search_sec, search_par, buff6, 100); */ printf("r: %d, R: '%s' \n",r,buff6); @@ -141,6 +144,6 @@ int main(int argc, char* argv[]){ free(buff4); free(buff5); free(buff6); - printf("\n"); + printf("\n -- end --\n"); return 0; } |