title: need help trying to run a array strcpy program
body: <p>I'm not sure what I need to run this code, I'm confused on the error and would greatly appreciate the assistance. </p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cassert&gt;
  
  using namespace std;
  
  unsigned int strlen(const char s[])
  {
      unsigned int n;
  
      for (n = 0; s[n]; n++);
  
      return n;
  }
  
  void strcpy(char t[], const char s[])
  {
      for (int i = 0; t[i] = s[i]; i++);
  }
  
  void teststring()
  {
      assert(strlen("") == 0);
      assert(strlen("A") == 1);
      assert(strlen("lime") == 4);
  
      cout &lt;&lt; "valid" &lt;&lt; endl;
  }
  
  int main()
  {
      char t[2] = "";
      char s[5] = "a";
      char i[6] = "Joey";
  
      teststring();
  
      assert(strcpy(t, s) == 0);
      assert(strcpy(t, s) == 1);
      assert(strcpy(t, s) == 4);
  
      cout &lt;&lt; "valid" &lt;&lt; endl;
  } 
  </code></pre>
  
  <p>I keep getting an error that says void value not ignored as it ought to be.</p>
  
  <p>I'm not sure what I need to do in order to get the code to run.</p>