D
David Bernier
I'd like to pass on the command line two filenames.
As for example:
my_executable filename_1 filename_2
I haven't done any C programming with command line arguments so far.
I'm familiar with fopen, ascii mode, binary mode. What I'm doing
now is specifying the filenames in the source code.
So I give different names to each source code file
and recompile each time.
The data in the files is signed ints and I read from files in ascii mode,
not binary.
Also, I'd be glad to have some references about
command line argument programming or simple examples.
I have K&R, Harbison and Steele's ``C A Reference Manual" and
I know where to find the FAQ for comp.lang.c
thanks
Dvid Bernier
As for example:
my_executable filename_1 filename_2
I haven't done any C programming with command line arguments so far.
I'm familiar with fopen, ascii mode, binary mode. What I'm doing
now is specifying the filenames in the source code.
So I give different names to each source code file
and recompile each time.
The data in the files is signed ints and I read from files in ascii mode,
not binary.
Also, I'd be glad to have some references about
command line argument programming or simple examples.
I have K&R, Harbison and Steele's ``C A Reference Manual" and
I know where to find the FAQ for comp.lang.c
thanks
Dvid Bernier