12-05-2005
do you have linux installed. if yes try to use the cdecl utility
this is what i get
cdecl> explain int * *p()
declare p as function returning pointer to pointer to int
cdecl> explain int * &p()
Warning: Unsupported in C -- 'reference'
declare p as function returning reference to pointer to int
cdecl>
so int **func() is a function that returns a pointer to a pointer to int and int * & func() is a function that returns an reference to a pointer to a function, and as seen above the second statement is not supported in C, you can try it in c++ tho.
7 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I would like to have the function keys available to me in my scripts. Anyone have any ideas on how to map these to functionality I design? :confused: (3 Replies)
Discussion started by: fjjlee
3 Replies
2. Shell Programming and Scripting
Hello Experts,
Is there any inbuild FLOOR function to do FLOOR func in mathmetics in awk script like in FlOOR Func in C.
Ex:- floor(2.9) = 2
floor(2.1) = 2
floor(2.0) = 2
floor(-2.0) = 2
floor(-2.1) = -3
floor(-2.9) =... (1 Reply)
Discussion started by: user_prady
1 Replies
3. UNIX for Dummies Questions & Answers
hello everybody!
I want to create a file with permissions for read, write, and execute to everybody using C, so I write this code:
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
int main(){
int fileDescriptor;
fileDescriptor =... (2 Replies)
Discussion started by: csnmgeek
2 Replies
4. Red Hat
</p>Download this video: Ogg Theora]
FUNC is the brainchild of Michael DeHaan, Adrian Likins, Seth Vidal, and Greg DeKoenigsberg. In this edition of Spotlight On, Michael, Adrian, and Seth discuss how FUNC makes it easy to write commands across large numbers of machines remotely and... (0 Replies)
Discussion started by: Linux Bot
0 Replies
5. Programming
Hi,
from the manual
listen(2): listen for connections on socket - Linux man page
It has a parameter called backlog and it limits the maximum length of queue of pending list.
If I set backlog to 128, is it means no more than 128 packets can be handled by server?
If I have three... (3 Replies)
Discussion started by: sehang
3 Replies
6. Shell Programming and Scripting
Hi!
I have a difficult problem, to step up a unknown version number in a text file, and save the file. It would be great to run script.sh and the version gets increased.
Example the content of the textfile.txt
hello
version = x
bye
This include three steps
1. First find the char after... (2 Replies)
Discussion started by: Beachboy72
2 Replies
7. Shell Programming and Scripting
Hi,
I have the following requirement.
There will be following text/line in a file (eg: search-build.txt)
PRODUCT_VERSION="V:01.002.007.Build1234"
I need to update the incremental build number (eg here 007) every time I give a build through script. I am able to search the string and get... (4 Replies)
Discussion started by: drwatson_droid
4 Replies
LEARN ABOUT NETBSD
set_form_init
FORMS(3) BSD Library Functions Manual FORMS(3)
NAME
field_init, field_term, form_init, form_term, set_field_init, set_field_term, set_form_init, set_form_term -- form library
LIBRARY
Curses Form Library (libform, -lform)
SYNOPSIS
#include <form.h>
void (*)(FORM *)
field_init(FORM *form);
void (*)(FORM *)
field_term(FORM *form);
void (*)(FORM *)
form_init(FORM *form);
void (*)(FORM *)
form_term(FORM *form);
int
set_field_init(FORM *form, void (*function)(FORM *));
int
set_field_term(FORM *form, void (*function)(FORM *));
int
set_form_init(FORM *form, void (*function)(FORM *));
int
set_form_term(FORM *form, void (*function)(FORM *));
DESCRIPTION
The field_init() function returns a pointer to the function that will be called just after the current field changes and just before the form
is posted, this function may be set by using the set_field_init() function. Similarly, the function field_term() will return a pointer to
the function that will be called just before the current field changes and just after the form is unposted, this function pointer may be set
by using the set_field_term() function. The form_init() function will return a pointer to the function that will be called just before the
form is posted to the screen, this function can be set by calling the set_form_init() function. The form_term() function will return a
pointer to the function that will be called just after the form is unposted from the screen, this function may be set by using the
set_form_term() function. By default, the init and term function pointers are NULL.
RETURN VALUES
Functions returning pointers will return NULL if an error is detected. The functions that return an int will return one of the following
error values:
E_OK The function was successful.
SEE ALSO
curses(3), forms(3)
NOTES
The header <form.h> automatically includes both <curses.h> and <eti.h>.
BSD
January 1, 2001 BSD