There are other functions to manage memory?

Non-platform specific questions.

There are other functions to manage memory?

Postby equinox » Sun Apr 05, 2009 12:04 pm

Hi at ALL,

...is possible ?...or is something imnpossibile?

Tnk1000 for reply.

#include <stdio.h>
#include <errno.h>
#include <sys/types.h>
#include <unistd.h>
#include <asm/page.h>
#include <sys/mman.h>
#include <unistd.h>
#include <stdio.h>
#include <fcntl.h>
#include <sys/ptrace.h>
#include <stdlib.h>

int main(int argc, char **argv)
{
FILE *mem = NULL;
FILE *output=NULL;
char p[64];
char byte;
unsigned long i = 0;
unsigned long addr, addr2;
int pid = 0;

if(argc < 5)
{
fprintf(stderr, "Usage: %s <start address> <end address> <pid> <output file>\n", argv[0]);
exit(EXIT_FAILURE);
}

addr = strtoul(argv[1], NULL, 16);
addr2 = strtoul(argv[2], NULL, 16);
pid = atoi(argv[3]);
.................ecc.ecc....
Last edited by equinox on Tue Apr 07, 2009 9:21 am, edited 1 time in total.
User avatar
equinox
 
Posts: 118
Joined: Tue Jan 29, 2008 3:38 pm
Score: 0 Give a positive score

Re: Is possible make >DUMP< of memory for save stae game?

Postby makslane » Sun Apr 05, 2009 1:31 pm

You can't include external files or load external libraries
Game Editor is an open source game creator software that's wants to pay it's developers to keep evolving.
If you like Game Editor, make a review!
makslane
Site Admin
 
Posts: 3947
Joined: Sat Apr 05, 2003 6:47 pm
Score: 182 Give a positive score

There are other functions besides these?

Postby equinox » Tue Apr 07, 2009 9:21 am

CALLOC, FREE, MALLOC, REALLOC
There are other functions besides these IN GE?

Tnk1000 for reply.
User avatar
equinox
 
Posts: 118
Joined: Tue Jan 29, 2008 3:38 pm
Score: 0 Give a positive score

Re: There are other functions to manage memory?

Postby pyrometal » Tue Apr 07, 2009 5:39 pm

No there aren't... But you can build your own functions from these four basic ones that do more complicated operations (like linked lists, etc).
SPRITE WARRIOR:
Free, open-source & crossplatform pixel art editor (currently under construction).
User avatar
pyrometal
 
Posts: 706
Joined: Wed Nov 28, 2007 4:07 am
Location: Kingston, ON, Canada
Score: 86 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron