Browse Source

readme rework

master
Screenager 6 years ago
parent
commit
426baaf642
  1. 1
      README
  2. 10
      README.MD
  3. 6
      test.cfg

1
README

@ -1 +0,0 @@
opens test.cfg and outputs it back to terminal

10
README.MD

@ -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.

6
test.cfg

@ -1,7 +1,7 @@
line1 = alasdads
line2=lel
mods = asdasd;94343;deinemudder //testst
line4 = lerare
line2=gfhfg
mods = asdasd;94343
line4 = asdas
Loading…
Cancel
Save