3 changed files with 13 additions and 4 deletions
@ -1 +0,0 @@ |
|||||
opens test.cfg and outputs it back to terminal |
|
||||
@ -0,0 +1,10 @@ |
|||||
|
# Super Lightweight config parser function |
||||
|
--- |
||||
|
## Usage |
||||
|
--- |
||||
|
pointer=**read_cfg**(*file*) |
||||
|
|
||||
|
where *file* is a string of a filepath. |
||||
|
Will return a pointer to a struct defined in read_cfg.h |
||||
|
This pointer should be freed once you are done setting your options. |
||||
|
Will return 0 if file could not be found. |
||||
@ -1,7 +1,7 @@ |
|||||
line1 = alasdads |
line1 = alasdads |
||||
line2=lel |
line2=gfhfg |
||||
mods = asdasd;94343;deinemudder //testst |
mods = asdasd;94343 |
||||
line4 = lerare |
line4 = asdas |
||||
|
|
||||
|
|
||||
|
|
||||
Loading…
Reference in new issue