mirror of
https://github.com/cc65/cc65.git
synced 2024-10-01 00:57:11 +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:
parent
1ccb54d58d
commit
975eefc7c2
@ -51,6 +51,7 @@ C_OBJS = _afailed.o \
|
|||||||
strftime.o \
|
strftime.o \
|
||||||
strxfrm.o \
|
strxfrm.o \
|
||||||
strtok.o \
|
strtok.o \
|
||||||
|
system.o \
|
||||||
timezone.o \
|
timezone.o \
|
||||||
vprintf.o \
|
vprintf.o \
|
||||||
vsscanf.o
|
vsscanf.o
|
||||||
|
20
libsrc/common/system.c
Normal file
20
libsrc/common/system.c
Normal 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 */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user