passing char[] around functions
<p>I am trying to chain together a few overloaded functions. It is something that should be really simple but I am getting errors. Here is the code:</p>

<pre><code>void output(char c[])
{
    output(c, 0);
}

void output(char c[], int x)
{
    int l = strlen(c) - x;
    output(c, x, l);
}

void output(char c[], int x, int y)
{
    cout &lt;&lt; c;
}

int main()
{
    output("myname");
    output("myname", 3);
    output("myname", 2, 4);
}
</code></pre>

<p>The errors I am getting relate the chained parts (<code>output(c, 0);</code> and <code>output(c, x, l);</code>.
The errors are:</p>

<pre><code>"No matching function for call to 'output (char *&amp;, int)'
"No matching function for call to 'output (char *&amp;, int &amp;, int &amp;)'
</code></pre>

<p>An explanation of what I have done wrong would be good as well.</p>
