|
From: <nem...@us...> - 2008-04-24 18:59:17
|
Revision: 3
http://hblight.svn.sourceforge.net/hblight/?rev=3&view=rev
Author: nemesis2342
Date: 2008-04-24 11:59:14 -0700 (Thu, 24 Apr 2008)
Log Message:
-----------
anfanfg von read_config der configdatei
Added Paths:
-----------
read_config.c
Added: read_config.c
===================================================================
--- read_config.c (rev 0)
+++ read_config.c 2008-04-24 18:59:14 UTC (rev 3)
@@ -0,0 +1,21 @@
+#include <stdio.h>
+#include <stdlib.h>
+
+/*
+ *
+ *Read Config file an parse it to hblight daemon
+ *
+*/
+
+int main() {
+ FILE *ptrConfig;
+ char buffer[sizeof(ptrConfig)];
+ ptrConfig = fopen("hblight.cfg", "r");
+ while(!feof(ptrConfig)){
+ fgets(buffer, sizeof(ptrConfig), ptrConfig);
+ printf("%s", buffer);
+ }
+ fclose(ptrConfig);
+ ptrConfig = NULL;
+ return 0;
+}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|