aboutsummaryrefslogtreecommitdiffstats
path: root/docs/source/lang/void.rst
blob: bc7a3dc295cb458d6612868f921388fb3ffe82b4 (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
34
35
36
37
38
39
40
.. _lang-void:

void
====

The void keyword is used only in function declarations. It
indicates that the function is expected to return no information to
the function from which it was called.



Example:
--------

::

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

    void setup()
    {
      // ...
    }

    void loop()
    {
      // ...
    }




See also
--------

`function declaration <http://arduino.cc/en/Reference/FunctionDeclaration>`_



.. include:: cc-attribution.txt