delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/01/12/10:24:59

From: Dezso_Kovacs%OPELHUNGARY_SZG AT opel DOT hu
Subject: system() problem
12 Jan 1998 10:24:59 -0800 :
Message-ID: <C125658A.0031FB17.00.cygnus.gnu-win32@opel.hu.cyberlink.eds.com>
Mime-Version: 1.0
To: gnu-win32 AT cygnus DOT com




Hello!

I have installed the GNU-win32 b18 on NT 3.51 and compiled this code with
gcc:

#include <stdlib.h>
int main (void)
{
        int i;
        i = system ("dir");
        return i;
}

When I run the program it prints "failure!!!!!" and returns -1.
The system() did not work with any other arguments I tried except NULL when
 it returned 1 (and
there was no failure message then).

Is it a bug or did I do something wrong?

Thank you,

     Dezso Kovacs
     d DOT kovacs AT opel DOT hu


-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019