mirror of
https://github.com/cc65/cc65.git
synced 2025-04-08 19:38:55 +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 \
|
||||
strxfrm.o \
|
||||
strtok.o \
|
||||
system.o \
|
||||
timezone.o \
|
||||
vprintf.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…
x
Reference in New Issue
Block a user