Skip to content

Instantly share code, notes, and snippets.

@SeungYup26
SeungYup26 / StringSplit.cpp
Last active January 31, 2024 00:42
C++17 split string
// C++ 17
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
std::vector<std::string> split(const std::string& target, char c)
{
std::string temp;
@cl4u2
cl4u2 / route_dump.c
Created March 20, 2013 12:46
Linux route monitoring example
/*
iflist.c : retrieve network interface information thru netlink sockets
(c) Jean Lorchat @ Internet Initiative Japan - Innovation Institute
v1.0 : initial version - Feb 19th 2010
This file was obtained at the following address :
http://www.iijlab.net/~jean/iflist.c