]> git.sur5r.net Git - cc65/commitdiff
Added a dummy system() function
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 27 May 2003 18:23:38 +0000 (18:23 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Tue, 27 May 2003 18:23:38 +0000 (18:23 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2171 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/common/Makefile
libsrc/common/system.c [new file with mode: 0644]

index 24d4dc96361340be3205c4afd32b4803458c2b74..cb77af872c10b99e2cb2024aba61905abe2a10ab 100644 (file)
@@ -51,6 +51,7 @@ C_OBJS =      _afailed.o      \
                 strftime.o      \
                strxfrm.o       \
                strtok.o        \
+                system.o        \
                 timezone.o      \
                vprintf.o       \
                 vsscanf.o
diff --git a/libsrc/common/system.c b/libsrc/common/system.c
new file mode 100644 (file)
index 0000000..c4c8bd3
--- /dev/null
@@ -0,0 +1,20 @@
+/*
+ * system.c
+ *
+ * Stefan Haubenthal, 2003-05-26
+ * Ullrich von Bassewitz, 2003-05-27
+ */
+
+#include <stdlib.h>
+
+int system (const char* s)
+{
+    if (s == NULL) {
+        return 0;               /* no shell */
+    } else {
+        return -1;              /* always fail */
+    }
+}
+
+
+