I want to create a void function that can input strings (read from a file) into a series of character arrrays, which I have defined within a struct. Then I need to be able to use the struct char array within the block I have called the function in, and then have that struct char arrays destroyed once it leaves the block. I need them destroyed so that I can use the struct char arrays for different strings.
Is this possible in c?
I'm guessing that this is possible if I use an inline function. If so, am I right in saying that I can use variables defined in main within the inline function?
Sorry if the above makes no sense what so ever!
Is this possible in c?
I'm guessing that this is possible if I use an inline function. If so, am I right in saying that I can use variables defined in main within the inline function?
Sorry if the above makes no sense what so ever!