Skip to content

Instantly share code, notes, and snippets.

View cacharle's full-sized avatar

Charles Cabergs cacharle

View GitHub Profile
@cacharle
cacharle / function_ptr_return_function_ptr.c
Created February 22, 2025 13:03
function_ptr_return_function_ptr
#include <stdio.h>
int a(int x,int y){
return 1;
}
double b(int x, int y){
return 1.5;
}
@cacharle
cacharle / zmq_timers.hpp
Created April 17, 2025 15:59
ZMQ timers draft
#include <chrono>
#include <optional>
#include <zmq.h>
#include <zmq.hpp>
namespace zmq
{
using timer_id_t = int;