TICS Coding Standard Viewer 
TIOBE Software Quality Framework
Print-friendly version
©TIOBE Software www.tiobe.com
 
TIOBE - C Coding Standard
Search

SR:  7.2#1Checked automatically with code checker

This rule is Obsolete
Synopsis:Void expressions have no value and must not be used in other expressions.
Language:C
Severity Level:2
Category:EXPRESSIONS


Description:
The ANSI standard does not allow expressions returning 'void' type (which have no value) to be used in another expression.

Example:

extern void fn();
...
int x = fn();
...
is illegal because the function 'fn' does not return a value.