Reading from memory
To read contents from the address space of another program you must call the proctal_read function. It takes a handle, an address in the program, a pointer to a buffer and the number of bytes to read as arguments and returns the number of bytes read.
void *address = (void *) 0x1C09346;
int i;
size_t bytes_read = proctal_read(proctal, address, &i, sizeof(i));
You must make sure that it's possible to write to the given buffer up
to the given number of bytes.
If the returned number is not equal to the given number, then an error
must have occurred. Check the Error
handling page to learn how to deal with an error.