Mail Archives: djgpp/1998/01/06/21:45:23
Charles Krug wrote:
> Whoops! I made a mistake. corrections follow:
>
> > char buf[100];
> > register *char bufptr = buf;
> >
>
> This should read:
>
> char buf[100];
> register bufptr = buf; /*(I think . . .) */
No, this would declare bufptr to be of type int.
The declaration you're looking for is
register char *bufptr = buf;
A pointer to char which is a register variable.
--
Erik Max Francis, &tSftDotIotE / mailto:max AT alcyone DOT com
Alcyone Systems / http://www.alcyone.com/max/
San Jose, California, United States / icbm://+37.20.07/-121.53.38
\
"Life may be / the product of imperfections."
/ (Marclo Gleiser)
- Raw text -