[ILUG] Hi, just a quick question (again!!)

kevin lyda kevin at suberic.net
Tue Apr 13 13:52:31 IST 1999


Philip Trickett burst across the net:
>struct instrument {
>  char name[60];  /* Name of the Instrument */

it's not a char *, it's an array of char...

>conn_inst[0].name = "Blah Blah Blah";

strcpy(conn_inst[0].name, "Blah Blah Blah");

>Does anyone have any ideas, as every book etc. i have checked has indicated th
>at this is an OK way to do this.

get different books.  and read sections on pointers and arrays.  they
can trick you.

kevin




More information about the ILUG mailing list