From: Harald van Dijk
> Sent: 17 April 2023 22:44
...
> I am assuming it was intended to be
> 
>    printf("%s%s", buf, &"\n"[opt & 1]);

That is fine, as is "\n" + (opt & 1)
It can also be written:
                &(opt & 1)["\n"]
since [] is commutative in C.
Basically x[y] <=> *(x+y) <=> *(y+x) <=> y[x].

        David

-
Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, 
UK
Registration No: 1397386 (Wales)

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to