Assignment help request
Dorian Hawkmoon
jj5824 at leah.Albany.Edu
Tue May 8 04:29:23 AEST 1990
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 at leah.albany.edu
More information about the Comp.lang.c
mailing list