I am reading some code (K&R Questions) but cannot figure out what '->' means. I have seen it a few times, and have tried searching around but have not come up with an answer. Just for an example, here is one instance where it is used.
[snippet]
Code:
#include <stdio.h>
#define MAXVAL 1000
#define MAXLINE 1000
typedef struct {
int top;
int val[MAXVAL];
int pos[MAXVAL];
} stackstr;
/* very simple stack push function */
int push(stackstr *stk, int foo, int bar)
{
if (stk->top == MAXVAL) {
printf("stack overflow. NOT putting more values on the stack.\n");
return 1;
}
stk->val[stk->top] = foo;
stk->pos[stk->top] = bar;
stk->top++;
return 0;
}
... [/snippet]