Skip to content

Instantly share code, notes, and snippets.

@pt300
pt300 / jsmn_example.c
Created December 27, 2018 18:24
JSMN parse example using parent links feature
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#define JSMN_PARENT_LINKS
#include "jsmn.h"
#define MAX_TOK 50
#include <stdio.h>
#include <time.h>
#include <stdlib.h>
#include "pcg/pcg_basic.h"
struct timespec diff_t(struct timespec, struct timespec);
int main(void) {
pcg32_srandom(time(NULL) ^ (intptr_t)&printf, rand());
struct timespec start, end;