AP_alloc

Allocate an outgoing message buffer

Synopsis

#include "autopack.h"

void *AP_alloc(int destpid, int tag, int size )

Parameters

destpid
the destination of the message
tag
the message's tag
size
size of the message in bytes

Description

Allocates a buffer for an outgoing message with the given destination, tag, and size. Returns a pointer to this buffer. After the caller has stored data in the buffer, AP_send() is used to send it.

Return Value

A pointer to the allocated buffer.