Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>There is no <em>universal</em> header -- since parsing every header takes time, and there are thousands (if not millions) of headers available, there is no way to include them all into every compilation unit. You wouldn't want to, since 99.9% of them wouldn't be <em>used</em> and would only needlessly bloat the end executable with static allocations.</p> <p>Every standardized function will tell you the headers you need to include at the top of its manpage; for example, from <code>malloc(3)</code>:</p> <pre><code>NAME calloc, malloc, free, realloc - Allocate and free dynamic memory SYNOPSIS #include &lt;stdlib.h&gt; void *calloc(size_t nmemb, size_t size); void *malloc(size_t size); void free(void *ptr); void *realloc(void *ptr, size_t size); </code></pre> <p>Thus you need to <code>#include &lt;stdlib.h&gt;</code> in your project, and there's the prototypes for you to see.</p> <p>If you want a quick way to see the manpages, you can configure your IDE to show them to you quickly. The default keybinding for <kbd>K</kbd> in <code>vim</code> is to load the manpage for the function under the cursor -- but, since it uses the default manpage search order, it can sometimes find the wrong page. (On <code>printf</code>, for example, it loads <code>printf(1)</code> rather than <code>printf(3)</code>. Annoying. The <code>MANSECT</code> environment variable described in <code>man(1)</code> can be used to change this behavior to show you <code>3</code> before <code>1</code>, if you wish.)</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload