What the hell does this mean??
Robert Earl
rearl at churchy.ai.mit.edu
Fri Mar 8 13:29:53 AEST 1991
In article <1083 at caslon.cs.arizona.edu> dave at cs.arizona.edu (Dave P. Schaumann) writes:
| In article <6117 at mahendo.Jpl.Nasa.Gov> robert at triton.JPL.NASA.GOV writes:
| >Hello fellow C programmers,
| > I have a small problem:
| > "spa_tclkutc.c", line 130: unacceptable operand of &
| > on this line
| > (void) sscanf(ptr,"%04d",&(primary.utc.dy));
|
| The first thing that comes to mind is that primary was declared as a
| register variable. This is the only circumstance I am aware of that
| forbids use of the & operator.
If "dy" is a bitfield member of the struct, as in:
struct foo {
int dy : 5;
};
you cannot take its address.
--robert earl
More information about the Comp.lang.c
mailing list