Skip to content

Instantly share code, notes, and snippets.

View ror3d's full-sized avatar

Roc ror3d

View GitHub Profile
@ror3d
ror3d / split.cpp
Created September 27, 2012 10:04 — forked from anonymous/split.cpp
Argument Splitter
char ** split(const string & str, int arguments){
char ** argv;
argv = new char * [arguments];
uint index = 0;
int offset = 0;
int argcount = 0;
do{
index = 0;
while (str[index + offset] != ' ' && index + offset < str.length()){
index ++;