Skip to content

Instantly share code, notes, and snippets.

View Karsten1987's full-sized avatar

Karsten Knese Karsten1987

View GitHub Profile
repositories:
ros2/rosbag2_bag_v2:
type: git
url: https://github.com/ros2/rosbag2_bag_v2.git
version: master
@rdp
rdp / send_ctrl_c.c
Last active February 28, 2025 13:15
// attribution: http://stackoverflow.com/a/15281070/32453
// you can compile this with gcc [mingw or mingw-w64] and probably other compilers as well
#include <stdlib.h> // NULL
#include <stdbool.h> // false
#include <windows.h> // AttachConsole, CTRL_C_EVENT, etc.
#include <stdio.h> // printf
#include <strsafe.h>
void logLastError()