aboutsummaryrefslogtreecommitdiffstats
path: root/source/lang/void.rst
diff options
context:
space:
mode:
Diffstat (limited to 'source/lang/void.rst')
-rw-r--r--source/lang/void.rst40
1 files changed, 40 insertions, 0 deletions
diff --git a/source/lang/void.rst b/source/lang/void.rst
new file mode 100644
index 0000000..bc7a3dc
--- /dev/null
+++ b/source/lang/void.rst
@@ -0,0 +1,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