aboutsummaryrefslogtreecommitdiff
path: root/main.c
blob: e5c5a2517f5ce14cdd4c9020bad42e9d35e28c12 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21

/*
Inspirations:
- https://nullprogram.com/
*/
#include <assert.h>
#include <stddef.h>
#include <stdint.h>

#include "memory.h"
#include "string.h"
#include "vec.h"

#define sizeof(x) (ptrdiff_t)sizeof(x)
#define countof(a) (sizeof(a) / sizeof(*(a)))
#define lengthof(s) (countof(s) - 1)

typedef struct {
  int age;
} User;

int main() { return 0; }