Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.c > #12596

Re: inline

From blp@cs.stanford.edu (Ben Pfaff)
Newsgroups comp.lang.c
Subject Re: inline
Date 2011-11-03 09:14 -0700
Message-ID <87mxcdfair.fsf@blp.benpfaff.org> (permalink)
References <j8ubn1$6vb$1@speranza.aioe.org>

Show all headers | View raw


"Mark" <mark_cruzNOTFORSPAM@hotmail.com> writes:

> is it required to have 'inline' keywoard before type in a function 
> definition/declaration? For example, what is correct:
>
> inline int small_func(void)
> {
>     /* do something */
> }
>
> or
>
> int inline small_func(void)
> {
>     /* do something */
> }

Both are correct but the former is customary.

> Also - is the same true for functions having static definition?

Same answer.
-- 
char a[]="\n .CJacehknorstu";int putchar(int);int main(void){unsigned long b[]
={0x67dffdff,0x9aa9aa6a,0xa77ffda9,0x7da6aa6a,0xa67f6aaa,0xaa9aa9f6,0x11f6},*p
=b,i=24;for(;p+=!*p;*p/=4)switch(0[p]&3)case 0:{return 0;for(p--;i--;i--)case+
2:{i++;if(i)break;else default:continue;if(0)case 1:putchar(a[i&15]);break;}}}

Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

inline "Mark" <mark_cruzNOTFORSPAM@hotmail.com> - 2011-11-03 11:13 -0400
  Re: inline blp@cs.stanford.edu (Ben Pfaff) - 2011-11-03 09:14 -0700
    Re: inline "Mark" <mark_cruzNOTFORSPAM@hotmail.com> - 2011-11-03 15:20 -0400
      Re: inline blp@cs.stanford.edu (Ben Pfaff) - 2011-11-03 12:50 -0700
      Re: inline Kaz Kylheku <kaz@kylheku.com> - 2011-11-03 20:10 +0000
      Re: inline Keith Thompson <kst-u@mib.org> - 2011-11-03 13:51 -0700

csiph-web