COHERENT manpages

This page displays the COHERENT manpage for void [Data type].

List of available manpages
Index


void -- C Keyword

Data type

The  keyword void  indicates that  the  function does  not return  a value.
Using  void declarations  makes  programs clearer  and is  useful in  error
checking.  For  example, a function that prints an  error message and calls
exit  to terminate  a  program should  be  declared void  because it  never
returns.  A function that performs a calculation and stores its result in a
global variable (rather than returning  the result), or one that returns no
value, should  also be declared void  to prevent the accidental  use of the
function in an expression.

See Also

C keywords
ANSI Standard, §6.1.2.5