Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Jul 2006 20:06:52 -0400
From:      Mike Meyer <mwm-keyword-freebsdhackers2.e313df@mired.org>
To:        James Bailie <jimmy@jamesbailie.com>
Cc:        freebsd-hackers@freebsd.org, Randall Hyde <randyhyde@earthlink.net>
Subject:   Re: getc in BSD (was FLEX issues)
Message-ID:  <17577.45340.818482.432245@bhuda.mired.org>
In-Reply-To: <44A9AC43.3090606@jamesbailie.com>
References:  <16887068.1151618963387.JavaMail.root@elwamui-cypress.atl.sa.earthlink.net> <20060630081019.GB734@turion.vk2pj.dyndns.org> <002501c69ecf$5967c6b0$6302a8c0@pentiv> <44A9AC43.3090606@jamesbailie.com>

next in thread | previous in thread | raw e-mail | index | archive | help
In <44A9AC43.3090606@jamesbailie.com>, James Bailie <jimmy@jamesbailie.com> typed:
> Randall Hyde wrote:
>  > This kind of gives me the impression that "getc" is defined a bit
>  > differently under FreeBSD than other environments?  Any ideas?
> Yes.  It's defined as a macro.

Linux says that getc "may be implemented as a macro". Anything that
needs a function should be using fgetc, not getc. But

	<mike
-- 
Mike Meyer <mwm@mired.org>		http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?17577.45340.818482.432245>