manohar@csl.dl.nec.com (mun o her) (06/18/91)
I hope this is not a FAQ.
PROBLEM:
I am trying to make a signal(SIGPIPE,sghandfunc) call in a C++ program.
The SCenario :
#include <signal.h>
--
--
sghandfunc() {
< signal handler function >
}
void myprog() {
< an exerpt from the prog >
signal(SIGPIPE,sghandfunc);
>
When I compile this program , I am getting an error message that " signal( )
does not match any of the defined functions (something on these lines>
I even tried declaring
extern "C" signal(int, FUNC). Ofcourse I did the appropriate typedef stuff to
make FUNC as a pointer to a function. Even this didnot work.
Any help will be greatly appreciated.
Manohar
--
My Life is like a boat in a dry river. I didnot want to drag the boat out, I
wanted to give it a river.
----Boris Pasternak's(of Dr. Zhivago's fame) letter to Mayor Kowaski
Manohar S. Gudavalli ||Internet: manohar@csl.dl.nec.com