Teensy 4.1 <string.h.

Status
Not open for further replies.

bvernham

Well-known member
Is char * strcasestr (const char *, const char *) __ATTR_PURE__ supported?

When I try to include it I get "error: 'strcasestr' was not declared in this scope" but strstr is fine : "!strstr(tempname, "PID")".

Thanks

Bruce
 
Sorry, not sure where you are seeing that definition: char * strcasestr (const char *, const char *) __ATTR_PURE__

I don't see anywhere within the Arduino install for Teensy or arm that uses __ATTR_PURE__

I do see that function in the arm include file on my machine: C:\arduino-1.8.15\hardware\tools\arm\arm-none-eabi\include\string.h

but it is under some #if:
Code:
#if __GNU_VISIBLE
int	 strcasecmp_l (const char *, const char *, locale_t);
int	 strncasecmp_l (const char *, const char *, size_t, locale_t);
#endif
Not sure if __GNU_VISIBLE which depends on _GNU_SOURCE ...
 
Status
Not open for further replies.
Back
Top