News for hackers. Stuff that matters.
Re:C implementation of Tic-Tac-Toe in a single call to printf by codegladiator on Sunday June 07, 2020 @06:25AM (#23446261)
> in a single call to printf

> while(*d) printf(fmt, arg)

How's that a single call ?

Re:C implementation of Tic-Tac-Toe in a single call to printf by zeroimpl on Sunday June 07, 2020 @01:16PM (#23448855)
It also turns out “arg” is a macro which calls scanf. Would be better if they described it more realistically.
Re:C implementation of Tic-Tac-Toe in a single call to printf by usr1106 on Sunday June 07, 2020 @07:34AM (#23446635)
> How's that a single call

syntactically it is. But it's not a very clear description. So how would you describe that single call location getting executed in a loop so everybody understands what is really meant? A single line of code is worse.

Re:C implementation of Tic-Tac-Toe in a single call to printf by lelf on Sunday June 07, 2020 @08:37AM (#23446922)
printf once in a while
Re:C implementation of Tic-Tac-Toe in a single call to printf by RoutinePlayer on Sunday June 07, 2020 @07:50AM (#23446707)
"a call to printf in a while loop"