* [ECOS] what for "static"?
@ 2001-07-22 20:33 Tony Ko
2001-07-23 4:37 ` Jonathan Larmour
0 siblings, 1 reply; 2+ messages in thread
From: Tony Ko @ 2001-07-22 20:33 UTC (permalink / raw)
To: ecos-discuss
hi.
look, " static void eth_drv_send(struct ifnet *);"
this is prototype declaration on eth_drv.c.
why is static used on prototype declaration?
thanks in advance.
Tony.
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [ECOS] what for "static"?
2001-07-22 20:33 [ECOS] what for "static"? Tony Ko
@ 2001-07-23 4:37 ` Jonathan Larmour
0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Larmour @ 2001-07-23 4:37 UTC (permalink / raw)
To: Tony Ko; +Cc: ecos-discuss
Tony Ko wrote:
>
> hi.
> look, " static void eth_drv_send(struct ifnet *);"
> this is prototype declaration on eth_drv.c.
>
> why is static used on prototype declaration?
Because it is a static function! It needs to be declared if it is used
before it is defined.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine
Come to the Red Hat TechWorld open source conference in Brussels!
Keynotes, techie talks and exhibitions http://www.redhat-techworld.com/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2001-07-23 4:37 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-07-22 20:33 [ECOS] what for "static"? Tony Ko
2001-07-23 4:37 ` Jonathan Larmour
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).