This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: what for "static"?
- To: Tony Ko <nhko at gctsemi dot com>
- Subject: Re: [ECOS] what for "static"?
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Mon, 23 Jul 2001 12:37:29 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <9860C773D04D834D83FD6FAD00A61E930F2039@gctsemi.gctsemi.com>
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/