Skip to content

Instantly share code, notes, and snippets.

View camilleoudot's full-sized avatar

Camille Oudot camilleoudot

  • Lannion, France
View GitHub Profile
@camilleoudot
camilleoudot / be2json.c
Last active May 11, 2023 16:22
Bencode to JSON converter
/* converts Bencoded data on stdin to JSON on stdout */
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h>
int pos = 0;
int c;
char stack[1024], *sp = stack;