🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Andy Newman Fri, 09 Oct 1992 05:59
void functions returning expressions (which are void functions)
#1177
Author: Andy Newman
Date: Fri, 09 Oct 1992 05:59
21 lines
944 bytes
gcc 2.2.2 under SunOS 4.1.1 (and 4.1.2) does not report any problems
with the following code...


void fred(void)
{
}

void joe(void)
{
    return fred();
}


Section 3.6.6.4 of the ANSI standard states that void functions cannot
have return statements with expressions.

-- 
Andy Newman (andy@research.canon.oz.au)
"Giving money and power to governments is like giving whiskey and
 car keys to teenage boys" - P.J.O'Rourke
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads