[config]: flesh out config system
This commit is contained in:
parent
8e6aa92053
commit
b252486831
3 changed files with 54 additions and 0 deletions
8
main.c
8
main.c
|
|
@ -13,10 +13,18 @@
|
|||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
#include "config.h"
|
||||
#include <stdio.h>
|
||||
|
||||
Config globalConfig;
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
int result = getConfig(argc, argv, &globalConfig);
|
||||
if (result != 0) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
printf("Hello world!\n");
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue