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


Groups > comp.lang.c > #16417

Re: typecast function pointer

From Keith Thompson <kst-u@mib.org>
Newsgroups comp.lang.c
Subject Re: typecast function pointer
Date 2012-01-29 21:05 -0800
Organization None to speak of
Message-ID <lnfwexzsnn.fsf@nuthaus.mib.org> (permalink)
References <jg0sdr$b96$1@speranza.aioe.org> <jg0ui5$o9l$1@dont-email.me> <jg4epn$se9$1@speranza.aioe.org> <lnk44aywia.fsf@nuthaus.mib.org> <slrn3vfsjibo7m.42d.ike@iceland.freeshell.org>

Show all headers | View raw


Ike Naar <ike@iceland.freeshell.org> writes:
> On 2012-01-29, Keith Thompson <kst-u@mib.org> wrote:
>> The compiler doesn't care whether you write "int", or "signed int", or
>> "signed", or "int unsigned" for that matter.
>
> That sentence (or else the compiler) needs to be fixed.

Oops, the last should be "int signed".

To summarize, the following are all equivalent names for the same type:

    int
    signed int
    int signed
    signed

The "int signed" form is rarely used, but the standard permits type
specifiers to appear in any order.

-- 
Keith Thompson (The_Other_Keith) kst-u@mib.org  <http://www.ghoti.net/~kst>
    Will write code for food.
"We must do something.  This is something.  Therefore, we must do this."
    -- Antony Jay and Jonathan Lynn, "Yes Minister"

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


Thread

typecast function pointer "Mark" <mark_cruzNOTFORSPAM@hotmail.com> - 2012-01-28 08:15 -0500
  Re: typecast function pointer Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-01-28 08:52 -0500
    Re: typecast function pointer "Mark" <mark_cruzNOTFORSPAM@hotmail.com> - 2012-01-29 16:47 -0500
      Re: typecast function pointer Ian Collins <ian-news@hotmail.com> - 2012-01-30 10:56 +1300
      Re: typecast function pointer Keith Thompson <kst-u@mib.org> - 2012-01-29 14:27 -0800
        Re: typecast function pointer Ike Naar <ike@iceland.freeshell.org> - 2012-01-30 00:14 +0000
          Re: typecast function pointer Keith Thompson <kst-u@mib.org> - 2012-01-29 21:05 -0800
      Re: typecast function pointer Eric Sosman <esosman@ieee-dot-org.invalid> - 2012-01-29 18:07 -0500
        Re: typecast function pointer Keith Thompson <kst-u@mib.org> - 2012-01-29 21:06 -0800
  Re: typecast function pointer Ben Bacarisse <ben.usenet@bsb.me.uk> - 2012-01-28 14:08 +0000

csiph-web