Funktion in Funktion

Soviel zum Thema "Standards"
Zugegeben: Es ist nicht standardkonform, soweit ich rausbekommen konnte. GCC bietet die Möglichkeit trotzdem an.
Wenn man allerdings mit der Option für Standard-C compiliert, meckert GCC auch:
Code:
lirion@cenobite test> gcc -ansi -pedantic -o main main.c
main.c: In function `funktion1':
main.c:7: warning: ISO C forbids nested functions
main.c:9: warning: ISO C89 forbids mixed declarations and code
 
Und Du regst Dich auf, wenn mein VC++ NULL auch als 0 behandelt... *tztz* :)
 
Und Du regst Dich auf, wenn mein VC++ NULL auch als 0 behandelt... *tztz*
Das hab ich nicht getan... Ich hab nur gesagt, dass es in meinen Augen Schwachsinn ist, wenn man NULL doppelt definiert - das gibt irgendwann einfach Probleme.
Und Visual C++ konnte ich noch nie leiden. ;)
 
Zurück