From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,8c2e7f8bf8bb63e0 X-Google-Attributes: gid103376,public From: Keith Thompson Subject: Re: In GNAT/Ada95(main) use a C-Program Date: 1999/06/10 Message-ID: #1/1 X-Deja-AN: 488235905 References: <375E60AD.C56EAE59@sbox.tu-graz.ac.at> <7jlrn0$c2h@hobbes.crc.com> <375EB748.2ABAAC25@sbox.tu-graz.ac.at> <7josp4$nug$1@nnrp1.deja.com> X-Complaints-To: usenet@nusku.cts.com X-Trace: nusku.cts.com 929081381 12660 198.68.168.21 (11 Jun 1999 06:09:41 GMT) Organization: CTS Network Services NNTP-Posting-Date: 11 Jun 1999 06:09:41 GMT Newsgroups: comp.lang.ada Date: 1999-06-11T06:09:41+00:00 List-Id: Robert Dewar writes: [...] > If you are using GNAT, a preferable method is to use the > higher level routines in GNAT.OS_Lib, since they are portable > across all platforms, including those that do not support > the Unix system call. One minor correction: the system() function is part of the C language definition, so it should exist on any system that supports C, not just Unix. On the other hand, the form of the argument to system() is extremely system-specific. On Unix, it's usually passed to /bin/sh, on DOS/Windows, I think it's usually interpreted as a DOS command, and so on. -- Keith Thompson (The_Other_Keith) kst@cts.com San Diego Supercomputer Center <*> One of the great tragedies of ancient history is that Helen of Troy lived before the invention of the champagne bottle.