aboutsummaryrefslogtreecommitdiffstats
path: root/source/arduino/charcast.rst
diff options
context:
space:
mode:
authorMarti Bolivar <mbolivar@mit.edu>2010-10-25 21:15:28 -0400
committerMarti Bolivar <mbolivar@mit.edu>2010-11-17 12:44:28 -0500
commit2d429e75ce69e77f8c95490ac03881ec9aa0354a (patch)
treea3b810a6c75625b07a4b976e5d1e319c60e19a6b /source/arduino/charcast.rst
parent30ac55d80c18e93f9c39a6dd850c10f9e7fd92ac (diff)
downloadlibrambutan-2d429e75ce69e77f8c95490ac03881ec9aa0354a.tar.gz
librambutan-2d429e75ce69e77f8c95490ac03881ec9aa0354a.zip
arduino language reference nearing completion, properly CC-BY-SA 3.0 attributed
Diffstat (limited to 'source/arduino/charcast.rst')
-rw-r--r--source/arduino/charcast.rst29
1 files changed, 12 insertions, 17 deletions
diff --git a/source/arduino/charcast.rst b/source/arduino/charcast.rst
index daa7c92..d8184c1 100644
--- a/source/arduino/charcast.rst
+++ b/source/arduino/charcast.rst
@@ -1,41 +1,36 @@
+.. highlight:: cpp
+
.. _arduino-charcast:
-char()
-======
+char() (cast)
+=============
Description
-----------
-Converts a value to the
-`char <http://arduino.cc/en/Reference/Char>`_ data type.
-
-
+Converts a value to the :ref:`char <arduino-char>` data type.
Syntax
------
-char(x)
-
+``char(x)``
Parameters
----------
-x: a value of any type
-
+**x**: a value of any type
Returns
-------
-char
+The value, converted to a ``char``. Note, however, that if the value
+is outside the range of a ``char`` (-128 to 127), then the results
+might be strange and unexpected.
-
-See also
+See Also
--------
-
-- `char <http://arduino.cc/en/Reference/Char>`_
-
-
+- :ref:`char <arduino-char>`