•  Back 
  •  C Language 
  •  Index 
  •  Tree View 
  •  Cross references 
  •  Help 
  •  Show info about hypertext 
  •  View a new file 
Topic       : C-Language Documentation
Author      : John Kormylo
Version     : C.HYP 1.0
Subject     : Documentation/C-Language
Nodes       : 233
Index Size  : 6362
HCP-Version : 3
Compiled on : Atari
@charset    : atarist
@lang       : en
@default    : 
@help       : Help
@options    : +g -i -s +x +z -t4
@width      : 75
View Ref-File[ return ]

Syntax:
                         return( <value> );
                         return <value> ;

where <value> is an expression with the same data type as the
function itself.  Causes the function to terminate and return <value>
to the calling function.

For void functions, one can use 'return;' or 'return(void);'.  There
is an implied 'return(void)' at the end of the function definition
(if reachable):

  void function(char* p)
   {
    strcpy(p, "string");
   }

See also Functions.