// Collection of code snippets by Arne Vajhøj 
// (likely posted to comp.os.vms/INFO-VAX, INFO-TPU, MACRO32, eksperten.dk, newz.dk, LinkedIn or other place sometime between 1990 and now) 
#include <iostream>
#include <cstring>

using namespace std;

int main()
{
    char str[]  = "/say Hello World";
    if(strstr(str,"/say ")==str)
    {
        cout << (str+5) << endl;
    }
    char *first  = strtok(str, " ");
    if(strcmp(first,"/say")==0)
    {
        char *second = strtok(NULL, "");
        cout << second << endl;
    }
    return 0;
}
