🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.c.moderated
Article #2473

Re: Pointers to functions

#2473
From: Lloyd Hopkins
Date: Wed, 03 Apr 1996 13:10
33 lines
1896 bytes
In article <4jq1ef$a2u@solutions.solon.com>
           schwarz@mips.complang.tuwien.ac.at "Konrad Schwarz" writes:

> I don't have K&R handy, so I'm guessing---but I wouldn't be surprised if
> comp is one of the sort procedure's arguments.  This again would be a

Yes, that was what I was referring to.  After reading the replies I got to
my query, it all made sense :)

> The key to complex declarations is knowing that postfix operators, such
> as () /* procedure parenthesis */ and [] /* array brackets */ bind tighter

I am having some difficulty with some of the examples in 5.12.  The first
few are straight forward enough, but (for example):

char (*(*x[3])())[5]

is pretty confusing to figure!  I'll print out your advice and take a look
at it again.

Thanks very much for the help, it's much appreciated.  

By the way, it's possible that I might not have seen some replies to the 
newsgroup as my feed seems to be losing the odd message.  Well, I never 
saw my original posting on the local server anyway.  Apologies to anyone
who followed up to this group and didn't receive a reply.

Thanks again,
Lloyd

-- 
Lloyd Hopkins                Email : lloyd@bomber.demon.co.uk
                             WWW   : http://www.netlink.co.uk/users/lloyd 
Technical Details
Message-ID: <4jttba$3gt@solutions.solon.com>
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
References: <4jol6u$1sn@solutions.solon.com> <4jq1ef$a2u@solutions.solon.com>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!solon.com!not-for-mail
From: Lloyd Hopkins <Lloyd@bomber.demon.co.uk>
Newsgroups: comp.lang.c.moderated
Subject: Re: Pointers to functions
Date: 3 Apr 1996 07:10:02 -0600
Organization: Bomber 2
Sender: clc@solutions.solon.com
Approved: clc@solutions.solon.com
Message-ID: <4jttba$3gt@solutions.solon.com>
References: <4jol6u$1sn@solutions.solon.com> <4jq1ef$a2u@solutions.solon.com>
Reply-To: Lloyd@bomber.demon.co.uk
NNTP-Posting-Host: solutions.solon.com
X-NNTP-Posting-Host: bomber.demon.co.uk
X-Newsreader: Demon Internet Simple News v1.30
X-Mail2News-Path: bomber.demon.co.uk