Skip to content
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
54 lines (41 sloc) 1.33 KB
All CopyRights Reserved.
Created by emailme to:
this source are under GNU/GPL (General Public Licence)
by unmanarc.
thanks to all.
enjoy ;)
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define MEMORY_SLOTS 128 //128 memory slots
#define MEMORY_FOR_USER 65536 //65Kb of memory for each user
typedef struct memory2a
char mem[MEMORY_FOR_USER]; //memory
char name[MEMORY_SLOTS][12]; //name of this slot
int pos[MEMORY_SLOTS]; //pointer to part of memory that have the data
int lenght[MEMORY_SLOTS]; //memory lenght, if 0 memory slot released
} mem_of_user;
class Cmm
int putmem(char *name, char *data_to_put, int lenght); //put data into mem
char *getmem(char *name); //get data from memory
char *getmemdatabynumber(int pos); //get data from memory (from position)
char *getmemnamebynumber(int pos); //get name from memory (from position)
int get_slots(); //get Current slots
int getmemsize(char *name); //get data size from memory
int release_mem(); //delete all data in memory
int defragmem(); //defrag memory and return freemem.
int getslotfree();
int search_name(char *name);
mem_of_user local_mem;
char rtax[MEMORY_FOR_USER];
You can’t perform that action at this time.