From 975eefc7c2f2b07572042b27a63b5e5b43afca5b Mon Sep 17 00:00:00 2001 From: cuz Date: Tue, 27 May 2003 18:23:38 +0000 Subject: [PATCH] Added a dummy system() function git-svn-id: svn://svn.cc65.org/cc65/trunk@2171 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/common/Makefile | 1 + libsrc/common/system.c | 20 ++++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 libsrc/common/system.c diff --git a/libsrc/common/Makefile b/libsrc/common/Makefile index 24d4dc963..cb77af872 100644 --- a/libsrc/common/Makefile +++ b/libsrc/common/Makefile @@ -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 index 000000000..c4c8bd3c5 --- /dev/null +++ b/libsrc/common/system.c @@ -0,0 +1,20 @@ +/* + * system.c + * + * Stefan Haubenthal, 2003-05-26 + * Ullrich von Bassewitz, 2003-05-27 + */ + +#include + +int system (const char* s) +{ + if (s == NULL) { + return 0; /* no shell */ + } else { + return -1; /* always fail */ + } +} + + + -- 2.39.5