title: Own strcmp function - non standard chars
body: <p>I am currently writing a little sort function. I can only use stdio libary, so I wrote my 'own strcmp' function.</p>
  
  <pre><code>int ownstrcmp(char a[], char b[])
  {
     int i = 0;
  
     while( a[i] == b[i] )  
     {
  
        if( a[i] == '\0' ) 
          return 0;
        ++i;
     }
  
     return  ( a[i] &lt; b[i]) ? 1 : -1;
  }
  </code></pre>
  
  <p>This works great for me. But there is one little problem: What can I do for 'non-Standard-Chars'? Like "ä,ü,ß Their decimal ASCII value is greater than the normal chars, so it sort the string 'example' behind 'ääää'.
  I have already read about locale, but the only library that i can use is <code>stdio.h</code>. Is there a 'simple' solution for this problem? </p>