mirror of
https://github.com/Hizenberg469/Inter-Process-Communication-IPC-.git
synced 2026-04-20 02:12:25 +03:00
16 lines
312 B
C
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;
|
|
} |