Skip to main content

Name

strncasestrn — Find a binary substring within a binary string, case insensitive

Synopsis

#include "util.h"

| const char * **strncasestrn** ( | needle, |   | |   | needle_len, |   | |   | haystack, |   | |   | haystack_len); |   |

const char * <var class="pdparam">needle</var>; int <var class="pdparam">needle_len</var>; const char * <var class="pdparam">haystack</var>; int <var class="pdparam">haystack_len</var>;

Description

Note

This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.

Find a binary substring within a binary string, case insensitive.

Search for needle in haystack using a case insensitive comparison. NUL characters in the strings are ignored; only the lengths are respected.

Parameters

needle

the string to find

needle_len

the length of the needle

haystack

the string to search

haystack_len

the length of the haystack

Return Values

Returns a pointer to the first instance of needle found in haystack.

Was this page helpful?