#include <sys/ipc.h>
#include <sys/shm.h>
#include <stdio.h>

int main(void)
{
  int shmid = shmget(734297, 256, IPC_CREAT | 0777);
  if (shmid == -1) printf("err shmget\n");
  char* shmd = shmat(shmid, NULL, 0);
  if (shmd == (char*)-1) printf("err shmat\n");
  return 0;
}