🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.std.c
Article #3203

assignment of function pointers with different templates

#3203
From: James Buster bitbug
Date: Wed, 26 Jun 1991 20:54
17 lines
1008 bytes
If I have two function pointers with different templates, e.g.

	void (*fptr1) (int signo);
	void (*fptr2) (int signo, void *value);

and I perform the following assignment, presuming fptr1 and fptr2 have
previously been initialized

	fptr1 = fptr2

is this assignment, and any resulting function call, according to ANSI,
undefined or implementation defined? I am waiting for my copy of the ANSI
Standard to arrive, so I am asking here in the meantime.
-- 
				James Buster
			       bitbug@btr.com
		Seen on an MLS machine: Live Free or Die!
Technical Details
Message-ID: <3212@public.BTR.COM>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!public!bitbug

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!public!bitbug
From: bitbug@public.BTR.COM (James Buster  bitbug@btr.com)
Newsgroups: comp.std.c
Subject: assignment of function pointers with different templates
Message-ID: <3212@public.BTR.COM>
Date: 26 Jun 91 20:54:20 GMT
Distribution: na
Organization: BTR Public Access UNIX, MtnView CA. Contact: Customer Service cs@BTR.COM
Lines: 17