Liste des Groupes | Revenir à cl c |
On 2025-04-04, Thiago Adams <thiago.adams@gmail.com> wrote:Shit happens... ;^)Em 4/4/2025 5:34 PM, Kaz Kylheku escreveu:Your name isn't Bjarne Stroustrup, so you're not allowed toThe else part might need access to some local variables>
in the main part.
>
do {
char *name = calculate_path(PATH_PREFIX "/", name, ".txt");
FILE *f = fopen(...)
>
if (!f)
quit;
...
}
else
{
printf("unable to open %s\n", name);
...
}
In this case we move the scope of the variable we need.
create scope wormholes between disjoint curly braces.
Les messages affichés proviennent d'usenet.