Skip to content

Instantly share code, notes, and snippets.

@guterka
guterka / fork_example.c
Last active October 2, 2025 10:59
Fork usage in C
#include <stdio.h>
#include <stdlib.h>
#include <sys/time.h>
#include <time.h>
#include <unistd.h>
#include <errno.h>
#include <string.h>
#include <sys/wait.h>
#define ARRAYS_LEN 120
@guterka
guterka / Makefile
Created March 19, 2024 00:09
Standard makefile
CC = gcc
CFLAGS = -Wall -Wextra -pedantic
LIBS =
build: main.c
$(CC) $(CFLAGS) -o main main.c $(LIBS)
run: build
./main