Compare different length char arrays in c++ without string library
<p>I have 2 char arrays, one with length 50, other whose length varies from 1...50. I need to compare these.</p>

<p>The problem is, that the array containing 50 chars, usually contains less chars, but when comparing, it also takes them into account. So if I have 2 array, whose value is <code>U2</code>, length of first will be 50, the second - 2. </p>

<p>So, how do I check this, without using the standard string library? I must not use the string library, that is a prerequisite.</p>
