API issue in WICED SDK 3.7.0

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

I came across this issue in 3.5.2 which exists in 3.7.0: the strnstr standard library function has been redefined with a different signature. It causes an issue with my existing codebase that uses this method as defined in <bsd/string.h>

include/wiced_utilities.h:

char* strnstr( const char* s, uint16_t s_len, const char* substr, uint16_t substr_len );

Could you please address this in a future patch release ? I can get by commenting it out for the time being, but it's not great having standard library functions redefined differently.

Thanks

0 Likes
1 Reply
AxLi_1746341
Level 7
Level 7
10 comments on KBA 5 comments on KBA First comment on KBA

strnstr is renamed to strnstrn in sdk-6.2.

0 Likes