extra.c File Reference

File that contains functions common to other files. More...

#include "h1.h"

Go to the source code of this file.

Functions

int GetSharedMem (char *token)
 Gets a shared memory and connects to it.


Detailed Description

File that contains functions common to other files.

Author:
Bruno Andrade nÂș35606

Definition in file extra.c.


Function Documentation

int GetSharedMem ( char *  token  ) 

Gets a shared memory and connects to it.

The function first creates a random key to identify the memory and then connects to it with some specific permissions.

Parameters:
token 
Returns:
int. The Shared memory ID. Returns -1 in case of failure.

Definition at line 15 of file extra.c.


Generated on Fri Feb 12 22:17:11 2010 for Teste by  doxygen 1.5.8