1
0
mirror of https://github.com/cc65/cc65.git synced 2024-06-27 12:29:33 +00:00

Added a dummy system() function

git-svn-id: svn://svn.cc65.org/cc65/trunk@2171 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-05-27 18:23:38 +00:00
parent 1ccb54d58d
commit 975eefc7c2
2 changed files with 21 additions and 0 deletions

View File

@ -51,6 +51,7 @@ C_OBJS = _afailed.o \
strftime.o \
strxfrm.o \
strtok.o \
system.o \
timezone.o \
vprintf.o \
vsscanf.o

20
libsrc/common/system.c Normal file
View File

@ -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 */
}
}