Utility library conv_path() w_getpal()
Programming guideline of WinDom

Galloc()

NAME

Galloc - Global memory reservation.

PROTOTYPAGE

void *Galloc( size_t size);

PARAMETERS

size:
memory size required,

retour:
address of buffer or NULL if error.

DESCRIPTION

Galloc() reserves global memory, i.e. memory which can be shared with other application. It is mainfully used when a message is sent to an another application: all data shared between application should be declared in global memory (or shared memory). Only MiNT with memory protection is concerned.

RESTRICTIONS

Galloc() is not a performing memory manager as malloc(), it makes a direct call to Malloc()/Mxalloc() and has the same limitation of these functions.

EXAMPLE

     	void send_fileto_qed( char *file) {
     		char *path = Galloc( 128);
     
     		strcpy( path, file);
     		ApplWrite( appl_find( "QED     ", VA_START, ADR(path));
     		Mfree( path);
     	}