|
|
@@ -1,8 +1,14 @@
|
|
|
+#ifndef _CRT_SECURE_NO_WARNINGS
|
|
|
+# define _CRT_SECURE_NO_WARNINGS
|
|
|
+#endif
|
|
|
+
|
|
|
#include <stdio.h>
|
|
|
+#include <stdlib.h>
|
|
|
|
|
|
int main(int argc, char* argv[])
|
|
|
{
|
|
|
int ii;
|
|
|
+ const char* fail = getenv("PSEUDO_EMULATOR_FAIL");
|
|
|
|
|
|
printf("Command:");
|
|
|
for (ii = 1; ii < argc; ++ii) {
|
|
|
@@ -10,5 +16,9 @@ int main(int argc, char* argv[])
|
|
|
}
|
|
|
printf("\n");
|
|
|
|
|
|
- return 42;
|
|
|
+ if (fail && *fail) {
|
|
|
+ return 42;
|
|
|
+ }
|
|
|
+
|
|
|
+ return 0;
|
|
|
}
|