Shared Memory for IPC

This commit is contained in:
2024-05-01 16:26:49 +05:30
parent 8741cb43f4
commit 00b38699c3
4 changed files with 160 additions and 0 deletions

16
Shared Memory/writer.c Normal file
View File

@@ -0,0 +1,16 @@
#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;
}