User avatar
pathetic piss kitten @kitten@elizabeth.cat
9mo
okay but why is the third argument here an int??? why not a bool?

docs.nordicsemi.com/bundle/sdk_nrf5_v12.2.0/page/group_sha256.html#gae275b489baf65a4362dc2bc724d07ccd
2
0
1
0

User avatar
Alba 🌸 v_pat @mildsunrise@tech.lgbt
9mo
@kitten possibly because C did not have bool until "recently"
1
0
0
0
User avatar
pathetic piss kitten @kitten@elizabeth.cat
9mo
@mildsunrise ......ah
0
0
0
0
User avatar
Maaike 🔜 eth0 @ayke@blahaj.social
9mo
@kitten their public APIs tend to have rather conservative typing. They'll usually only pass integers or pointers, not structs and such. Maybe to avoid ABI differences between compilers?
0
0
1
0