summaryrefslogtreecommitdiff
path: root/src/user/lib/fwik/main.cpp
diff options
context:
space:
mode:
authorAlex AUVOLAT <alexis211@gmail.com>2012-05-19 14:07:01 +0200
committerAlex AUVOLAT <alexis211@gmail.com>2012-05-19 14:07:01 +0200
commit0d2f7645c3fb45d83497faf2a4b6fff8c3f175d1 (patch)
treea9038fce4cf81556fbdd5589caee8f4e9bfc5185 /src/user/lib/fwik/main.cpp
parent499ca6c243b05da176a2d4bd9a2317f0b28afc7f (diff)
downloadTCE-0d2f7645c3fb45d83497faf2a4b6fff8c3f175d1.tar.gz
TCE-0d2f7645c3fb45d83497faf2a4b6fff8c3f175d1.zip
Added string class for FWIK.
Diffstat (limited to 'src/user/lib/fwik/main.cpp')
-rw-r--r--src/user/lib/fwik/main.cpp11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/user/lib/fwik/main.cpp b/src/user/lib/fwik/main.cpp
index 8e2e289..e26cb46 100644
--- a/src/user/lib/fwik/main.cpp
+++ b/src/user/lib/fwik/main.cpp
@@ -1,10 +1,11 @@
#include <IO/IOStream.h>
#include <stdio.h>
#include <cpp.h>
+#include <String.h>
IOStream stdio;
-int Main(char **args); // FWIK app main
+int Main(String *args); // FWIK app main
extern "C" int main(char **args) {
stdio.term = 0;
@@ -13,7 +14,13 @@ extern "C" int main(char **args) {
if (zero.info.type & FT_TERMINAL) {
stdio.term = new Term(zero);
}
- Main(args);
+
+ int argc = 0;
+ while (args[argc] != 0) argc++;
+ String s_args[argc+1];
+ for (int i = 0; i < argc; i++) s_args[i] = args[i];
+
+ Main(s_args);
}