]> Nishi Git Mirror - libw3.git/commitdiff
fixing makefile, and version flag
authornishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Fri, 26 Jan 2024 02:09:55 +0000 (02:09 +0000)
committernishi <nishi@d27a3e52-49c5-7645-884c-6793ebffc270>
Fri, 26 Jan 2024 02:09:55 +0000 (02:09 +0000)
git-svn-id: file:///raid/svn-main/nishi-libw3/trunk@73 d27a3e52-49c5-7645-884c-6793ebffc270

Example/Makefile
Example/W3B/w3b.c

index 3d9e2a664042f9e19492642274586316b47f4b77..a9f42c5625041e58d98e18b877e0b65572ed1e51 100644 (file)
@@ -7,5 +7,3 @@
 
 clean:
        rm -f *.o *.so *.core *~ *.exe *.res
-
-
index 578a6163b4f0cfda45621b9e0e38e36bc2bce6f3..7ab55b1056faf501153c70658e30f469bb456e2c 100644 (file)
@@ -4,8 +4,17 @@
  * Simple browser
  */
 
+#include <W3Core.h>
+
 #include <stdio.h>
+#include <string.h>
 
 int main(int argc, char** argv) {
-       
+       int i;
+       for(i = 1; i < argc; i++){
+               if(strcmp(argv[i], "--version") == 0){
+                       printf("LibW3 %s\n", LIBW3_VERSION);
+                       return 0;
+               }
+       }
 }