3 ms·
They don't. There is a workable style for C and C++ (and other "C-likes") which looks like this: int main(void) { int ch; while ((ch = getchar() != EO
by kazinator 6y ago
They don't.
There is a workable style for C and C++ (and other "C-likes") which looks like this:
int main(void)
{ int ch;
while ((ch = getchar() != EOF)
{ putchar(ch); }
if (ferror(stdin))
{ return EXIT_FAILURE; }
else
{ return 0; } }
- neutronicus 6y agoOh, man, do you have a .clang-format or, better yet, emacs C-style that implements this?