title: How to represent a C char array in Java with GraalVm
body: <p>I'm consuming a C library in Java with GraalVm and I have this field (if_name) I don't know how to implement:</p>
  <pre><code># define IFNAMSIZ 16
  
  struct port_t
  {
     char if_name[IFNAMSIZ]; 
  }
  
  </code></pre>
  <p>This is my current code:</p>
  <pre><code>@CStruct(&quot;port_t&quot;)
  interface Port extends PointerBase {
      
      @CField(&quot;if_name&quot;)
      WordPointer getIfName();
  
      @CField(&quot;if_name&quot;)
      void setIfName(WordPointer ifName);
  }
  
  </code></pre>
  <p>Using WordPointer I get the following error compiling:</p>
  <pre><code>Error: Type WordPointer has a size of 8 bytes, but accessed C value has a size of 16 bytes; to suppress this error, use the annotation @AllowNarrowingCast
  </code></pre>
  <p>I already tried with CCharPointer and CCharPointerPointer but those have fixed lengths to 8 bytes and I got a similar error when compiling.</p>
  <p>Anyone can help?
  Thanks in advance</p>