Files
Inter-Process-Communication…/Shared Memory/writer.c
2024-05-01 16:26:49 +05:30

16 lines
312 B
C

#include <stdio.h>
#include <string.h>
extern int
create_and_write_shared_memory(char* mmap_key,
char* value,
unsigned int size);
int
main(int argc, char* argv[]) {
char* key = "/introduction";
char* intro = "Hello, I'm Hizenberg.";
create_and_write_shared_memory(key, intro, strlen(intro));
return 0;
}