title: implement substring c++
body: <p>how do you implement substring in C++ that returns pointer to char? (takes pointer to the first letter)</p>
  
  <p>say something like <code>char* substr(char* c, int pos, int lenght</code>)</p>