R
Robert S
hello,
I am investigating a code,which has data struct deelacration as follow:
typedef struct {
char *infile;
char inoptsbuf[10];
char *outfile;
} cmdoption_a;
cmdoption_a *cmdoption;
and intialization as follow:
cmdoption->infile=1;
cmdoption->outfile=1;
cmdoption->inoptsbuf='\0';
I am really confused since an integer is assign to the above variables?!!!!
any help??!!
bob
I am investigating a code,which has data struct deelacration as follow:
typedef struct {
char *infile;
char inoptsbuf[10];
char *outfile;
} cmdoption_a;
cmdoption_a *cmdoption;
and intialization as follow:
cmdoption->infile=1;
cmdoption->outfile=1;
cmdoption->inoptsbuf='\0';
I am really confused since an integer is assign to the above variables?!!!!
any help??!!
bob