title: Undefined reference to 'strnlen' despite "string.h" include
body: <p>I am trying to use create a project for LPC1769 on LPCXpresso. I have a C file calling </p>
  
  <pre><code>#include &lt;string.h&gt;
  int main()
  {
      //some stuff
      strnlen(SomeString, someInt);
  }
  </code></pre>
  
  <p>to which I get an error:</p>
  
  <pre><code>Undefined reference to 'strnlen'
  </code></pre>
  
  <p>The weird part is that there is no problem with strcpy, strncpy or other common string functions.</p>
  
  <p>I am building for a Cortex-M3 processor
  Compiler used is: arm-none-eabi-gcc
  In Eclipse, I have ticked the MCU linker option : No startup or default libs
  I am running Eclipse on Ubuntu</p>
  
  <p>While it may be easy enough to bypass this by just using strlen, I am actually facing a problem using a library which uses strnlen, and I don't want to mess with the library source.</p>