E
Eddahbi Karim
Hi,
I have a pointer *pos, an array of structure "valid_param_s[]" and a
member name.
(void) fprintf(stderr, "Invalid parameter %s\n"
"Type --help for more "
"informations\n"
,valid_params_s[*pos].name);
This code doesn't work, so I want to know how make it work
.
I could create another temporary variable to store *pos and do :
(void) fprintf(stderr, "Invalid parameter %s\n"
"Type --help for more "
"informations\n"
,valid_params_s[variable].name);
But I would do it without temporary variable, if it's possible
.
I have a pointer *pos, an array of structure "valid_param_s[]" and a
member name.
(void) fprintf(stderr, "Invalid parameter %s\n"
"Type --help for more "
"informations\n"
,valid_params_s[*pos].name);
This code doesn't work, so I want to know how make it work
I could create another temporary variable to store *pos and do :
(void) fprintf(stderr, "Invalid parameter %s\n"
"Type --help for more "
"informations\n"
,valid_params_s[variable].name);
But I would do it without temporary variable, if it's possible