title: how do remove enclosing brackets from string?
body: <p>I have a </p>
  
  <pre><code>char s9[7] = "[abcd]";
  </code></pre>
  
  <p>How do i remove the brackets <code>[]</code> so that</p>
  
  <pre><code>s9 == "abcd"
  </code></pre>
  
  <p>I have tried</p>
  
  <pre><code>s9 = s9.Substring(1, s9.Length-2);
  </code></pre>
  
  <p>throws error in cygwin</p>
  
  <pre><code>a2v2.c:42:13: error: request for member ‘Substring’ in something not a structure or union
  a2v2.c:42:29: error: request for member ‘Length’ in something not a structure or union
  </code></pre>
  
  <p>edit:</p>
  
  <p>i realised my error, i am beginner at c and couldnt differentiate between c and C++ code, regards</p>