Terence Eden on Nostr: Gah. I bloody hate C++ and #Arduino. I have an array ` uint8_t hmacKey[] = {0x4d, ...
Gah. I bloody hate C++ and #Arduino.
I have an array
` uint8_t hmacKey[] = {0x4d, 0x79, 0x4c}`
How do I find the size / length of the array? Because ` sizeOf(hmacKey) / sizeOf(hmacKey[0]);` isn't working.
Published at
2023-07-05 07:21:57Event JSON
{
"id": "b74778d6c597ee8eaf332734c9bd5a2ad5209a400fd534457c1647d837e9cf39",
"pubkey": "fddf487eea9db57a6e320f80e5cb63de50bedf539695a41c0d447be6c23643e1",
"created_at": 1688541717,
"kind": 1,
"tags": [
[
"t",
"arduino"
],
[
"mostr",
"https://mastodon.social/users/Edent/statuses/110660269977722772"
]
],
"content": "Gah. I bloody hate C++ and #Arduino. \nI have an array\n` uint8_t hmacKey[] = {0x4d, 0x79, 0x4c}`\n\nHow do I find the size / length of the array? Because ` sizeOf(hmacKey) / sizeOf(hmacKey[0]);` isn't working.",
"sig": "2ca870856be3f04d84c226b354cb62ee3fa4ac43b9a0b7f5446a1177a13fe0e20c64047ea129ee64d616665a1818da73db2f9e24180b18c512fefd837c6af9fc"
}