Skip to main content

Timeline for Loading... Forever

Current License: CC BY-SA 3.0

16 events
when toggle format what by license comment
Dec 29, 2016 at 17:46 comment added Steadybox @FlipTack Or at least it seemed to work, but I just now realised that it's undefined behaviour, so I reverted back to the (i+1) thing.
Dec 29, 2016 at 17:44 history edited Steadybox CC BY-SA 3.0
deleted 8 characters in body
Dec 29, 2016 at 17:33 history edited Steadybox CC BY-SA 3.0
added 7 characters in body
Dec 28, 2016 at 18:58 comment added Steadybox @FlipTack Yes, it does. Thank you!
Dec 28, 2016 at 18:57 history edited Steadybox CC BY-SA 3.0
added 8 characters in body
Dec 28, 2016 at 18:04 comment added FlipTack I don't know C, but would i=++i%4 work?
Dec 23, 2016 at 17:38 history edited Steadybox CC BY-SA 3.0
deleted 2 characters in body
Dec 23, 2016 at 17:28 history edited Steadybox CC BY-SA 3.0
added 1 character in body
Nov 28, 2016 at 21:48 history edited Steadybox CC BY-SA 3.0
deleted 5 characters in body
Nov 28, 2016 at 21:42 comment added LambdaBeta He can also save a byte (I think) by completely flushing with \r so he doesn't need the extra space in the "Loading... " string.
Nov 28, 2016 at 21:41 comment added LambdaBeta Have a look at my submission... i=i>2?0:i+1 is identically i=(i+1)%4. He can use incrementation in the index, then modulo in the loop.
Nov 28, 2016 at 21:39 comment added Adalynn Can you move the assignment into the index, for(;;){printf("\b%c",c[i=i>2?0:i+1])...?
Nov 28, 2016 at 21:27 history edited Steadybox CC BY-SA 3.0
added 10 characters in body
Nov 28, 2016 at 21:27 comment added Steadybox @ZacharyT Yes, it could. Thanks!
Nov 28, 2016 at 21:20 comment added Adalynn Could char *c be char*c?
Nov 28, 2016 at 21:09 history answered Steadybox CC BY-SA 3.0