| www.delorie.com/archives/browse.cgi | search |
| Date: | Mon, 22 Jan 2001 17:21:32 -0500 |
| Message-Id: | <200101222221.RAA03327@envy.delorie.com> |
| X-Authentication-Warning: | envy.delorie.com: dj set sender to dj AT envy DOT delorie DOT com using -f |
| From: | DJ Delorie <dj AT delorie DOT com> |
| To: | djgpp AT delorie DOT com |
| In-reply-to: | <94i4i7$t7o$00$1@news.t-online.com> (DTMAN@GMX.de) |
| Subject: | Re: Give a argument to a DJGPP Programm |
| References: | <94i4i7$t7o$00$1 AT news DOT t-online DOT com> |
| Reply-To: | djgpp AT delorie DOT com |
| Errors-To: | nobody AT delorie DOT com |
| X-Mailing-List: | djgpp AT delorie DOT com |
| X-Unsubscribes-To: | listserv AT delorie DOT com |
> i have done a little programm how open a file, do something, and close the
> file. The filename is "hard" in the code of the programm. Now i would like
> to give a argument with the filename. How can i do this? It should look like
> this:
>
> myprog test.x
int main(int argc, char **argv)
{
argc is the number of arguments (including the program name)
argv is a list of arguments (argv[0] is the program name)
}
> btw: is there an FAQ for this newsgroup?
http://www.delorie.com/djgpp/v2faq/
or get v2/faq* from any ftp site.
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |