return;

return (parameter);

Terminates the function. In the second case the given parameter is returned as result to the calling function, where it can be evaluated.

Parameters:

parameter - The value to be returned (variable, expression or pointer)

Speed:

Fast

Example:

function distance() 
{
  if (MY == NULL || YOU == NULL) { return(-1); } // negative distance indicates error
  return(vec_dist(my.x,your.x));
} 		

See also:

function