mirror of
https://github.com/Hizenberg469/Inter-Process-Communication-IPC-.git
synced 2026-04-19 18:02:24 +03:00
Shared Memory for IPC
This commit is contained in:
16
Shared Memory/writer.c
Normal file
16
Shared Memory/writer.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user