[comp.lang.c] Assignment help request

jj5824@leah.Albany.Edu (Dorian Hawkmoon) (05/08/90)

Hi.  I have an question regarding assignment statements.  I am attempting
to assign a sting (type char *) to a field of a record that has type
array of char.  The problem, as I'm sure everyone knows, is that it
is an illegal assignment since the lvalue is an array.  I can get it to
work by changing the record field to type char *.  However, I am reading
into an array of these records, and when I try to read in the next 
symbol to the next record, the char * field of the previous record is
changed to the value I am trying to assign to the next record.  And
I can't figure out why.  

Any help would be greatly appreciated.  Please email asap, and I can 
clarify any points that seem really vague above (as I'm sure most do).

        
Thanks in advance,

Jim Jurista
jj5824@leah.albany.edu

jj5824@leah.Albany.Edu (Dorian Hawkmoon) (05/08/90)

In article <3016@leah.Albany.Edu>, jj5824@leah.Albany.Edu (Dorian Hawkmoon) writes:
> 
> Hi.  I have an question regarding assignment statements. 

Thanks to everyone who helped me out!  I finished the program and it
works correctly.     

							Jim