STMems_Standard_C_drivers
STMems_Standard_C_drivers copied to clipboard
Replace sprintf with snprintf
Device part numbers
Summary
Brief explanation of the feature.
Hello, newer compilers are starting to complain related to usage of sprintf function (clang returning warning about deprecation). Their are suggesting to replace that call with snprintf. May you consider align your code?
Basic example
Motivation
'sprintf' is deprecated: This function is provided for compatibility reasons only. Due to security concerns inherent in the design of sprintf(3), it is highly recommended that you use snprintf(3) instead.