B
Ben
(I am using gcc 3.2 on RH 8)
int name (struct str *name)
I call the above function like this:
struct str buf;
int conf = name(&buf);
int j;
for (j=0; buf.address[j]; j++) {
printf("%c", buf.address[j]);
}
If I do buf->address[j] instead of buf.address[j], it gives me error..
Why's that? aren't they the same thing?
Bit confused!
Ben
int name (struct str *name)
I call the above function like this:
struct str buf;
int conf = name(&buf);
int j;
for (j=0; buf.address[j]; j++) {
printf("%c", buf.address[j]);
}
If I do buf->address[j] instead of buf.address[j], it gives me error..
Why's that? aren't they the same thing?
Bit confused!
Ben