T
Timur Ametov
Hi,
i know, it would be very stupid question, but i'm c-beginner and i haven't
found the answer in books. Ok, here it is.
I have:
typedef struct {
cdContext contextH;
/* stream I/O function pointers */
cdSOpen* open;
cdSClose* close;
cdSRead* read;
cdSWrite* write;
cdSSeek* seek;
cdSTell* tell;
} cdStream;
If i declare MyStream:
cdStream MyStream;
... how can i use its properties, that are pointers?
So: (*MyStream).open .. ?
Or maybe so: MyStream->open?
or so: *(MyStream.open)?
Or all of them are wrong?
Thanx.
i know, it would be very stupid question, but i'm c-beginner and i haven't
found the answer in books. Ok, here it is.
I have:
typedef struct {
cdContext contextH;
/* stream I/O function pointers */
cdSOpen* open;
cdSClose* close;
cdSRead* read;
cdSWrite* write;
cdSSeek* seek;
cdSTell* tell;
} cdStream;
If i declare MyStream:
cdStream MyStream;
... how can i use its properties, that are pointers?
So: (*MyStream).open .. ?
Or maybe so: MyStream->open?
or so: *(MyStream.open)?
Or all of them are wrong?
Thanx.