asdf
This commit is contained in:
parent
a723e0ba83
commit
72d3e85b3d
3
config
3
config
@ -1,3 +1,6 @@
|
||||
[Host]
|
||||
Hostname = https://5ccppi.org:4433
|
||||
[Services]
|
||||
/org/freedesktop/systemd1/unit/NetworkManager_2dwait_2donline_2eservice
|
||||
/org/freedesktop/systemd1/unit/NetworkManager_2eservice
|
||||
/org/freedesktop/systemd1/unit/httpd_2eservice
|
||||
|
5
config.c
5
config.c
@ -13,10 +13,13 @@ int loadConfig(char *str_file, char **str_entry,int size)
|
||||
f_config = fopen(str_file,"r");
|
||||
if(f_config != NULL)
|
||||
{
|
||||
if(fgets(temp_str,256,f_config)!=NULL)
|
||||
{
|
||||
if
|
||||
|
||||
for(i=0;i<size;i++)
|
||||
{
|
||||
printf("for loop:%d\n",i);
|
||||
printf("str:%s\n",str_entry[i]);
|
||||
if(fgets(temp_str,256,f_config)!=NULL)
|
||||
{
|
||||
temp_str[strcspn(temp_str,"\n")]=0;
|
||||
|
Loading…
Reference in New Issue
Block a user