๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: de.test
Article #46

Re: Nein, nein, nein!

#46
From: Marcel Logen
Date: Thu, 22 Oct 2026 10:48
37 lines
2975 bytes
yeti in de.test:

[...]

>Mit der 'printf'-Vermeidung durch 'return' schieรŸ ich mir hoffentlich
>nicht in den groรŸen Zeh:
>
>| $ printf 'main() { int x; return x ; }' | tcc - -run ; echo $?
>| 0
>| $ printf 'main() { int x; return x ; }' | gcc -xc - -o x ; ./x ; echo $?
>| <stdin>:1:1: warning: return type defaults to โ€˜intโ€™ [-Wimplicit-int]
>| 0

Scheint zu funktionieren, zumindest mit gcc.

Gegenprobe:

| user15@o15:/tmp$ printf 'int main() { int x=51; return x ; }' | gcc -xc - -o x ; ./x ; echo "$?"
| 51

Bei der tcc-Zeile bin ich mir aber nicht sicher, denn
man bash sagt:

| The return status of a pipeline is the exit status of
| the last command, unless the pipefail option is enabled.
[...]

und:

| [pipefail] This option is disabled by default.

Marcel                                                       (Lines: 37)
-- 
   โ•ญโ”€โ”€โ•ฎ      โ•ญโ”€โ”€โ”€โ”€โ•ฎ  โ•ญโ”€โ•ฎ                   โ•ญโ”€โ”€โ”€โ•ฎ โ•ญโ”€โ•ฎ  ..55..โ•ญโ”€โ”€โ”€โ”€โ”€โ•ฎ     
โ•ญโ”€โ”€โ•ฏ  โ”‚      โ•ฐโ”€โ”€โ•ฎ โ•ฐโ”€โ”€โ•ฏ โ•ฐโ”€โ”€โ•ฎ        ..36..โ•ญโ”€โ•ฏ   โ•ฐโ”€โ•ฏ โ”‚   โ•ญโ”€โ”€โ”€โ”€โ•ฏ  โ•ญโ”€โ”€โ•ฏ     
โ•ฏ   โ•ญโ”€โ•ฏ ...9..โ•ญโ”€โ•ฏ  โ•ญโ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ โ•ญโ”€โ”€โ”€โ”€โ•ฎ โ•ญโ”€โ•ฎ โ•ญโ”€โ•ฏ    โ•ญโ”€โ”€โ”€โ”€โ•ฏ   โ”‚     โ•ญโ”€โ•ฏ   โ•ญโ”€โ•ฎ  
    โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ    โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ    โ•ฐโ”€โ•ฏ โ•ฐโ”€โ•ฏ..41..โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ     โ•ฐโ”€โ”€โ”€โ”€โ”€โ•ฏ โ•ฐโ”€โ”€
Technical Details
Message-ID: <20261022th104811@o15.ybtra.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mail
References: <87jync36yh.fsf@dear-messner.dont-email.me> <20261020tu194524@o15.ybtra.de> <87ld7r21ff.fsf@yeti.tilde.institute> <87zew7xjl7.fsf@dear-messner.dont-email.me> <20261021we204605@o15.ybtra.de> <20261021we205243@o15.ybtra.de> <20261021we205645@o15.ybtra.de> <87h5iexs2b.fsf@dear-messner.dont-email.me> <AABq2b8JL4cAACMG.A3.flnews@o15.ybtra.de> <87a4o6xi1h.fsf@dear-messner.dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!weretis.net!feeder8.news.weretis.net!reader5.news.weretis.net!news.tota-refugium.de!.POSTED!not-for-mail
From: Marcel Logen <333200007110-0201@ybtra.de>
Newsgroups: de.test
Subject: Re: Nein, nein, nein!
Date: Thu, 22 Oct 2026 12:48:11 +0200
Organization: Bureau Logen
Message-ID: <20261022th104811@o15.ybtra.de>
References: <87jync36yh.fsf@dear-messner.dont-email.me> <20261020tu194524@o15.ybtra.de> <87ld7r21ff.fsf@yeti.tilde.institute> <87zew7xjl7.fsf@dear-messner.dont-email.me> <20261021we204605@o15.ybtra.de> <20261021we205243@o15.ybtra.de> <20261021we205645@o15.ybtra.de> <87h5iexs2b.fsf@dear-messner.dont-email.me> <AABq2b8JL4cAACMG.A3.flnews@o15.ybtra.de> <87a4o6xi1h.fsf@dear-messner.dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=fixed
Content-Transfer-Encoding: 8bit
Injection-Date: Thu, 22 Oct 2026 12:48:11 +0200
Injection-Info: tota-refugium.de;
	logging-data="214744"; mail-complaints-to="abuse@news.tota-refugium.de"
Keywords: ignore
User-Agent: flnews/1.3.0 (for GNU/Linux)
Cancel-Lock: sha1:lzaiV1X5B+TqPYJvNTZoEIrHrWs=
X-User-ID: eJwFwYkBgDAIA8CV+JLUcbTA/iN4h6TzqggWFivL3bU5Rd3QeNaLONKwZxatT93xGIbyjB8bCBDo
X-Face: -w#29Cl`D+Eb]KLU0WQTBD%0rq2h`xR>)#Xh@*W4~]f+)iLQ`lm6sOI}&.22+QH:DBrY=9X_vefGFNI`x^F=\BG5Ddeq)C{0u>;!=s'GW=RvgHMKa%hyXdMqd2sD*ZF4}5\2qfePSHs%zv-kkeI\r