update formatting

This commit is contained in:
Rokas Puzonas 2024-01-06 14:51:42 +02:00
parent c3c04b7697
commit 7321708c66

View File

@ -13,12 +13,10 @@ int main() {
memcpy(shmem, parent_message, sizeof(parent_message));
int pid = fork();
if (pid == 0) {
printf("Child read: %s\n", (char*)shmem);
memcpy(shmem, child_message, sizeof(child_message));
printf("Child wrote: %s\n", (char*)shmem);
} else {
printf("Parent read: %s\n", (char*)shmem);
sleep(1);