Variable-length messages.

Peter da Silva peter at ficc.uu.net
Sat Oct 22 02:15:32 AEST 1988


For what it's worth, the Amiga message routines are declared more or less
like so:

	struct message_header { ... };

	struct message {
		struct message_header header;
		body....;
	}

	send_message(message, port)
	struct message_header *message;
	struct message_port *port;
	{
	}

	struct message_header *recv_message(port)
	struct message_port *port;
	{
	}

And used more or less like:

	send_message((struct message_header *)message, port);

	message = (struct message *)recv_message(port);

This is a substantial multitasking operating system, with 'C' as the
effective systems programming language.

Disclaimer: names of functions and argument order have been changed to
	protect the guilty, and to simplify things for this forum.
-- 
Peter da Silva  `-_-'  Ferranti International Controls Corporation
"Have you hugged  U  your wolf today?"     uunet.uu.net!ficc!peter
Disclaimer: My typos are my own damn business.   peter at ficc.uu.net



More information about the Comp.lang.c mailing list