aboutsummaryrefslogtreecommitdiffstats
path: root/source/lang/cpp/void.rst
blob: 88c9c64d43c717884c416da8164bbf263b9c5dbd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.. highlight:: cpp

.. _lang-void:

``void``
========

.. cpp:type:: void

   The ``void`` keyword is used in function declarations. It indicates
   that the function is expected to return no information to the
   function from which it was called, or that it expects no arguments
   from its caller.

Example
-------

::

    // actions are performed in the functions "setup" and "loop"
    // but  no information is reported to the larger program

    void setup() {
      // ...
    }

    void loop() {
      // ...
    }

.. TODO doc page on function declaration?

.. include:: cc-attribution.txt