Re: What does "void (*vector[])( )" means?
Quoth Ben Pfaff on or about 2004-11-12:[color=blue][color=green]
> > Is this a pointer array of function?If I was wrong,what does it
> > means?[/color]
>
> array of pointer to function returning void[/color]
If you also mention cdecl(1), the OP might answer the next question
himself.
From the manpage:
Cdecl (and c++decl) is a program for encoding and decoding C (or
C++) type declarations.
Re: What does "void (*vector[])( )" means?
Bruce Sam wrote:[color=blue]
> Is this a pointer array of function?If I was wrong,what does it
> means?
>[/color]
Don't forget to put important parts of your message in the message. It
is not sufficient to hide that information in a header.
"void (*vector[])( )" declares vector as an array of pointers to
functions with an unspecified argument list and returning nothing.
Re: What does "void (*vector[])( )" means?
"Bruce Sam" <persevreman@ya hoo.com.cn> wrote in message news:<110030986 8.398790.212180 @f14g2000cwb.go oglegroups.com> ...[color=blue]
> Is this a pointer array of function?If I was wrong,what does it
> means?[/color]
This is an array of functions each with no (undefined) argument list
that return void. It can be made easier to understand ysing a typdef
for the function
Re: What does "void (*vector[])( )" means?
On Sun, 14 Nov 2004 08:22:37 -0800, Stuart Gerchick wrote:
[color=blue]
> "Bruce Sam" <persevreman@ya hoo.com.cn> wrote in message
> news:<110030986 8.398790.212180 @f14g2000cwb.go oglegroups.com> ...[color=green]
>> Is this a pointer array of function?If I was wrong,what does it means?[/color]
>
> This is an array of functions each with no (undefined) argument list[/color]
That should be "array of pointers to functions", you cannot have an "array
of functions" in C.
[color=blue]
> that return void. It can be made easier to understand ysing a typdef
> for the function[/color]
Re: What does "void (*vector[])( )" means?
On 14 Nov 2004 08:22:37 -0800, sgerchick@bloom berg.net (Stuart
Gerchick) wrote:
[color=blue]
>"Bruce Sam" <persevreman@ya hoo.com.cn> wrote in message news:<110030986 8.398790.212180 @f14g2000cwb.go oglegroups.com> ...[color=green]
>> Is this a pointer array of function?If I was wrong,what does it
>> means?[/color]
>
>This is an array of functions each with no (undefined) argument list
>that return void. It can be made easier to understand ysing a typdef
>for the function[/color]
Almost. It is an array of *pointer to* function. The parameter list
of the function is *unspecified*, which does not necessarily mean the
function takes no arguments.
Comment