comp.lang.ada
 help / color / mirror / Atom feed
From: Keith Thompson <kst@cts.com>
Subject: Re: In GNAT/Ada95(main) use a C-Program
Date: 1999/06/10
Date: 1999-06-11T06:09:41+00:00	[thread overview]
Message-ID: <yecyahrz2sa.fsf@king.cts.com> (raw)
In-Reply-To: 7josp4$nug$1@nnrp1.deja.com

Robert Dewar <robert_dewar@my-deja.com> 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  <http://www.ghoti.net/~kst>
San Diego Supercomputer Center  <http://www.sdsc.edu>                 <*>
One of the great tragedies of ancient history is that Helen of Troy
lived before the invention of the champagne bottle.




  reply	other threads:[~1999-06-10  0:00 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1999-06-09  0:00 In GNAT/Ada95(main) use a C-Program Gerhard Griessnig
1999-06-09  0:00 ` dennison
1999-06-09  0:00 ` David C. Hoos, Sr.
1999-06-09  0:00   ` Gerhard Griessnig
1999-06-09  0:00     ` Robert Dewar
1999-06-09  0:00     ` David C. Hoos, Sr.
1999-06-10  0:00       ` Robert Dewar
1999-06-10  0:00         ` Keith Thompson [this message]
1999-06-11  0:00           ` Robert Dewar
1999-06-09  0:00   ` Samuel Mize
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox