| T X T _ S T R S T R ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English INDEP - TXT_#?
----------------------------------------------------------------------------
NAME
txt_strstr() - Finds a string in the string.
SYNOPSIS
ptr = txt_strstr(str1, str2);
UBYTE *txt_strstr(const UBYTE *, const UBYTE *);
FUNCTION
This function allows to search for a NULL term. string
in another NULL terminated string.
INPUTS
str1 - String in which search process will take place.
str2 - String to be searched for.
RETURNS
Important! Function returns pointer past the beginning of
found 'str2', so in other words you will have to 'ptr -=
txt_strlen(str2);' to achieve start of that found pattern.
BASES
None.
NOTES
There is also case insensitive variant of this function,
called: 'txt_stristr()'. Please note that by def. there
is no UTF-8 support in case insensitive version, but it
may do support it when compiled to use 'utility.library'
(-D___QDEV_UTILITYCHAREQ)! Plus both of these have ptr
checking wrappers called:
'txt_pstrstr()' and 'txt_pstristr()' respectively.
SEE ALSO
EXAMPLE
None.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |