💾 Archived View for thrig.me › software › assembly › slab-of-code › boilerplate.c captured on 2023-12-28 at 17:27:34.
-=-=-=-=-=-=-
#include <err.h> #include <stdio.h> #include <stdlib.h> #define SLABSIZE 4096 int main(int argc, char *argv[]) { int value = 41; void *slab = malloc(SLABSIZE); if (!slab) err(1, "malloc"); printf("%d\n", value); }