Of if / else / while / for / etc.
It is less errorprone this way.
See:
* https://fc-solve.shlomifish.org/docs/distro/HACKING.html#one-line-clauses
*
https://medium.com/@jonathanabrams/single-line-if-statements-
2565c62ff492
.
* assume it means -1.
*/
if (optopt == (int)'-')
+ {
return (-1);
+ }
if (!*place)
+ {
++optind;
+ }
if (opterr && *ostr != ':')
+ {
(void)printf("illegal option -- %c\n", optopt);
+ }
return (BADCH);
}
if (*++oli != ':')
{ /* don't need argument */
optarg = NULL;
if (!*place)
+ {
++optind;
+ }
}
else
{ /* need an argument */
if (*place) /* no white space */
+ {
optarg = place;
+ }
else if (nargc <= ++optind)
{ /* no arg */
place = EMSG;
return (BADCH);
}
else /* white space */
+ {
optarg = nargv[optind];
+ }
place = EMSG;
++optind;
}