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 September 11, 2024 09:05
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;