/dev/rdsk/c5t1d0s2 on Nostr: my fave C “trick” is the “downto“ operator: uint8_t i = 10; while (i --> 0) ...
my fave C “trick” is the “downto“ operator:
uint8_t i = 10;
while (i --> 0) do_something();
Published at
2024-04-13 01:13:18Event JSON
{
"id": "f3e90f947a4f966c5e89fb3f070c280a9be65b61be2767fa20d6d1c768d1f6e4",
"pubkey": "dc6381215e656a56d81495cef020a0a291cdcb0195398bdded551ee3938dd9a0",
"created_at": 1712970798,
"kind": 1,
"tags": [
[
"p",
"04f8915424c713657ad6ce59443d28dbdcf5832687c9af560ae388f59276a137"
],
[
"e",
"ae8952100b94883a6ba6767d6d591e1395a46520201722329d1e01f7ff3afe1b",
"",
"root"
],
[
"proxy",
"https://aus.social/users/jpm/statuses/112261254224509324",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://aus.social/users/jpm/statuses/112261254224509324",
"pink.momostr"
]
],
"content": "my fave C “trick” is the “downto“ operator:\n\nuint8_t i = 10;\nwhile (i --\u003e 0) do_something();",
"sig": "9b94eec05b251b63d1190975b8a3151c9c4ff4f09f65d30b252eccb29b76c5e827f04532b5f21c3db296d741093dcbaa8ae6164a4e65ad53f5edae43952a33f9"
}