473,511 Members | 16,730 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Don't understand this function signature

I do know C but am not an expert. I'm creating an interface to the GLUT
library from the language Eiffel. Here is the signature for a function that
I do not understand:

GLUTAPI void APIENTRY glutTimerFunc(unsigned int millis, void (GLUTCALLBACK
*func)(int value), int value);

The part that is giving me a problem is (int value),

Any assistance appreciated.

Regards
Chris Saunders
Jun 21 '07 #1
9 2526
On Jun 21, 12:11 pm, "Chris Saunders" <e...@mountaincable.netwrote:
I do know C but am not an expert. I'm creating an interface to the GLUT
library from the language Eiffel. Here is the signature for a function that
I do not understand:

GLUTAPI void APIENTRY glutTimerFunc(unsigned int millis, void (GLUTCALLBACK
*func)(int value), int value);

The part that is giving me a problem is (int value),

Assuming reasonable definitions for the three macros...

The second parameter of glutTimerFunc() is a pointer to a function
which takes a single int as a parameter, and returns nothing. IOW,
the function passed as the second parameter must be fined something
matching "void xx(int a) {}".

Jun 21 '07 #2
In article <90***************************@MOUNTAINCABLE.NET >,
Chris Saunders <ev**@mountaincable.netwrote:
>I do know C but am not an expert. I'm creating an interface to the GLUT
library from the language Eiffel. Here is the signature for a function that
I do not understand:

GLUTAPI void APIENTRY glutTimerFunc(unsigned int millis, void (GLUTCALLBACK
*func)(int value), int value);

The part that is giving me a problem is (int value),

Any assistance appreciated.
Off topic. Not portable. Cant discuss it here. Blah, blah, blah.

Useful clc-related links:

http://en.wikipedia.org/wiki/Aspergers
http://en.wikipedia.org/wiki/Clique
http://en.wikipedia.org/wiki/C_programming_language

Jun 21 '07 #3
My thanks to Robert Wellel for your reply, I managed to accomplish what I
was attempting as a result. There was another reply from Kenny McCormack
stating "Off topic. Not portable. Cant discuss it here. Blah, blah,
blah.". I don't know C well enough to comment on the portability of the
function signature in my original post but my understanding is that GLUT is
supposed to be portable. Anyway, I got a response that filled my need.

Regards
Chris Saunders
Jun 21 '07 #4
Chris Saunders wrote:
There was another reply from Kenny McCormack
stating "Off topic. Not portable. Cant discuss it here. Blah, blah,
blah.".
An early introduction to the group's troll!

--
Ian Collins.
Jun 21 '07 #5
On Jun 21, 4:26 pm, "Chris Saunders" <e...@mountaincable.netwrote:
My thanks to Robert Wellel for your reply, I managed to accomplish what I
was attempting as a result. There was another reply from Kenny McCormack
stating "Off topic. Not portable. Cant discuss it here. Blah, blah,
blah.". I don't know C well enough to comment on the portability of the
function signature in my original post but my understanding is that GLUT is
supposed to be portable. Anyway, I got a response that filled my need.

Regards
Chris Saunders
GLUT is relatively portable, but strictly conforming C programs run on
machines which don't have windowing systems or graphics capabilities,
so technically most of GLUT is off topic here. There is "portable"
and there is "Portable." :) Something like the syntax for a function
declaration is generally always on topic since it isn't specific to a
particular library or anything, and doesn't require assuming anything
about the target platform.

Jun 21 '07 #6
"Chris Saunders" <ev**@mountaincable.netwrites:
My thanks to Robert Wellel for your reply, I managed to accomplish what I
was attempting as a result. There was another reply from Kenny McCormack
stating "Off topic. Not portable. Cant discuss it here. Blah, blah,
blah.". I don't know C well enough to comment on the portability of the
function signature in my original post but my understanding is that GLUT is
supposed to be portable. Anyway, I got a response that filled my need.
KM is a particularly pathetic troll. Please ignore him.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 22 '07 #7
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.orgwrote:
>"Chris Saunders" <ev**@mountaincable.netwrites:
>My thanks to Robert Wellel for your reply, I managed to accomplish what I
was attempting as a result. There was another reply from Kenny McCormack
stating "Off topic. Not portable. Cant discuss it here. Blah, blah,
blah.". I don't know C well enough to comment on the portability of the
function signature in my original post but my understanding is that GLUT is
supposed to be portable. Anyway, I got a response that filled my need.

KM is a particularly pathetic troll. Please ignore him.
KT is a particularly anal-retentive freak. Please enjoy him.

Jun 22 '07 #8
Chris Saunders wrote:
>
My thanks to Robert Wellel for your reply, I managed to accomplish
what I was attempting as a result. There was another reply from
Kenny McCormack stating "Off topic. Not portable. Cant discuss
it here. Blah, blah, blah.". I don't know C well enough to
comment on the portability of the function signature in my
original post but my understanding is that GLUT is supposed to be
portable. Anyway, I got a response that filled my need.
Always ignore McCormack. He is a troll.

--
<http://www.cs.auckland.ac.nz/~pgut001/pubs/vista_cost.txt>
<http://www.securityfocus.com/columnists/423>
<http://www.aaxnet.com/editor/edit043.html>
cbfalconer at maineline dot net

--
Posted via a free Usenet account from http://www.teranews.com

Jun 22 '07 #9
On Thu, 21 Jun 2007 22:13:44 -0400, CBFalconer <cb********@yahoo.com>
wrote:
>
Always ignore McCormack. He is a troll.
Probably this should be added to the FAQ.

--
Al Balmer
Sun City, AZ
Jun 22 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
1092
by: Aguilar, James | last post by:
I thought that functions always had to have different parameters if they had the same names. However, this section (http://www.parashift.com/c++-faq-lite/operator-overloading.html#faq-13.8) of...
22
1614
by: Suzie | last post by:
Hi guys, I've been coding in C for several years and I'm getting started with C++. I was given the following exercise to do and I don't quite understand it. I was wondering if any of you guys...
5
2818
by: titan0111 | last post by:
#include<iostream> #include<iomanip> #include<cstring> #include<fstream> using namespace std; class snowfall { private: int ft;
2
2686
by: Crimsonwingz | last post by:
Trying again for understanding and comprehension. Simple database. Name, birthday, age. Name and birthday are provided. From a form (yes, I need to do it this way), I would like to click a...
2
2496
by: Marek | last post by:
Hi I'm trying to call a native C++ dll using the following code (both C# and C++ code segments included). When I make the call to the method (AddTwoDoubles) that has no return value all is fine. ...
7
6102
by: asdf | last post by:
They looks so similar. Anybody would like to tell me their differences? Thanks a lot.
1
5546
by: Noah Roberts | last post by:
Trying to use boost::function in a C++/CLI program. Here is code: pragma once #include <boost/function.hpp> #include <boost/shared_ptr.hpp> #include <vector> using namespace System;
8
1850
by: Joshua Moore | last post by:
/* Hi, I was hoping someone could help me with this problem. I did my work and worked my way through the usual compiler messages, but I have run against some problem I can't identify. The compiler...
10
2094
by: vcquestions | last post by:
Hi. Is there way to have a function pointer to a delegate in c++/cli that would allow me to pass delegates with the same signatures as parameters to a method? I'm working with managed code. ...
0
7242
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7138
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7355
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7423
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7081
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5668
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3213
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
781
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
447
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.