From: Seika van Olstroem <seivan@gmx.net>
To: Nasir Hossain <nhossain@gawab.com>
Cc: linux-c-programming@vger.kernel.org
Subject: Re: pointer to function ??
Date: Thu, 20 May 2004 14:00:05 +0200 [thread overview]
Message-ID: <40AC9DC5.7080507@gmx.net> (raw)
In-Reply-To: <40AC868E.5040408@gawab.com>
Nasir Hossain wrote:
> hi,
>
> can someone explain this to me :
>
> 0: using namespace ldm;
>
> 1: struct cmd_parse_t {
> 2: char flag;
> 3: void (*taskfunc)(ldm::diskio& dev, int argc, char** argv);
> 4: bool readonly;
> 5: };
>
> what does line 3 do ? is it a pointer to a function or something else ?
Exactly! It's a pointer to function.
Prototype looks like follow:
void taskfunc(ldm::diskio& dev, int argc, char** argv);
best regards,
SoV
prev parent reply other threads:[~2004-05-20 12:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-05-20 10:21 pointer to function ?? Nasir Hossain
2004-05-20 12:00 ` Seika van Olstroem [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=40AC9DC5.7080507@gmx.net \
--to=seivan@gmx.net \
--cc=linux-c-programming@vger.kernel.org \
--cc=nhossain@gawab.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.