Writing to memory
To write contents to the address space of another program you must call the proctal_write function. It takes a handle, an address in the program, a pointer to a buffer and the number of bytes to write as arguments and returns the number of bytes written.
void *address = (void *) 0x1C09346;
int i = 0;
size_t bytes_written = proctal_write(proctal, address, &i, sizeof(i));
You must make sure that it's possible to read from 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.