title: Python ctypes return values question
body: <p>Why if i have this simple code</p>
  
  <pre><code>void voidFunct() {
        printf("voidFunct called!!!\n");
  }
  </code></pre>
  
  <p>I compile it as a dynamic library with</p>
  
  <pre><code>gcc -c LSB.c -o LSB.o 
  gcc -shared -Wl -o libLSB.so.1 LSB.o 
  </code></pre>
  
  <p>And i call function from a python interpreter, using ctypes</p>
  
  <pre><code>&gt;&gt;&gt; from ctypes import *
  &gt;&gt;&gt; dll = CDLL("./libLSB.so.1")
  &gt;&gt;&gt; return = dll.voidFunct()
  voidFunct called!!!
  &gt;&gt;&gt; print return
  17
  </code></pre>
  
  <p>why the value returned from a <code>void</code> method is <code>17</code> and not <code>None</code> or similar? Thank you.</p>