ronofcarrollton
Programmer
Hi,
Newbie to C but long time programmer.
Example:
struct {
char [50] big_string;
char [30] smaller_string;
} struct_name;
*char in_between_string [10] = &struct_name.big_string [45];
The syntax may not be quite right but hopefully the intent is correct.
I would rather not use unions as it get quite messy.
The "in_between_string" defination above gets me an array of 10 pointers but I want a pointer that is char for a length of 10.
Then I can reference the offset size as being 10 characters and still use the "struct_name." to qualify it.
Thanks for any help
Ron
Newbie to C but long time programmer.
Example:
struct {
char [50] big_string;
char [30] smaller_string;
} struct_name;
*char in_between_string [10] = &struct_name.big_string [45];
The syntax may not be quite right but hopefully the intent is correct.
I would rather not use unions as it get quite messy.
The "in_between_string" defination above gets me an array of 10 pointers but I want a pointer that is char for a length of 10.
Then I can reference the offset size as being 10 characters and still use the "struct_name." to qualify it.
Thanks for any help
Ron