Nordic DevZone
Nordic Q&A
Blog
Online Power Profiler
DevAcademy
Search
Support
+
User
Site
Search
User
Home
>
Nordic Q&A
All tags
style
ble
nrf51
s110
Initializing structs with memset
andrey
Why is it a standard in nordic-supplied code to initialize structs with memset like so? An example would be: ble_gatts_char_md_t char_md; memset(&char_md, 0, sizeof(char_md)); Instead of a cleaner way: ble_gatts_char_md_t char_md = {0}; …
Answered
over 10 years ago
Nordic DevZone
Nordic Q&A
View related content from anywhere