From: Erik Max Francis Newsgroups: comp.os.msdos.djgpp Subject: Re: 'Register' in C Date: Tue, 06 Jan 1998 18:07:24 -0800 Organization: Alcyone Systems Lines: 28 Message-ID: <34B2E35C.158B21F@alcyone.com> References: <01bd1ae1$2f536440$d83d63c3 AT default> <34B29809 DOT 8841108D AT pentek DOT com> <34B2AEDA DOT B0D341BD AT pentek DOT com> NNTP-Posting-Host: newton.alcyone.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk 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)