From: cuz Date: Tue, 27 May 2003 18:23:38 +0000 (+0000) Subject: Added a dummy system() function X-Git-Tag: V2.12.0~1547 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=975eefc7c2f2b07572042b27a63b5e5b43afca5b;p=cc65 Added a dummy system() function git-svn-id: svn://svn.cc65.org/cc65/trunk@2171 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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 */ + } +} + + +