Skip to content

Instantly share code, notes, and snippets.

@LeeXun
LeeXun / c99-heap.c
Created October 8, 2015 15:13 — forked from dannvix/c99-heap.c
Simple std::priority_queue-like container implemented in C99, without error handling and thread-safety
/*
* c99-heap.c
* - Description: Simple std::priority_queue-like container implemented in C99, without error handling and thread-safety
* - Author: Shao-Chung Chen
* - License: CC0
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
@LeeXun
LeeXun / c99-vector.c
Created October 8, 2015 15:13 — forked from dannvix/c99-vector.c
Simple std::vector-like container implemented in C99, without error handling and thread-safety
/*
* c99-vector.c
* - Description: Simple std::vector-like container implemented in C99, without error handling and thread-safety
* - Author: Shao-Chung Chen
* - License: CC0
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>