| T X T _ D A T D A T ( )
| | | | | SOURCE: qdev_autodocs.txt 1.163 (12/09/2014) English INDEP - TXT_#?
----------------------------------------------------------------------------
NAME
txt_datdat() - Finds x byte data in y = x + z byte data
buffer.
SYNOPSIS
ptr = txt_datdat(dat1, len1, dat2, len2);
UBYTE *txt_datdat(const UBYTE *, LONG,
const UBYTE *, LONG);
FUNCTION
This function allows to search for a binary data in
greater or equal than that data binary buffer.
INPUTS
dat1 - Binary data in which search process will take
place.
len1 - Size of that data.
dat2 - Binary data that will be seek for in 'dat1'.
len2 - Size of that data.
RETURNS
Important! Function returns pointer past the beginning of
found 'dat2', so in other words you will have to 'ptr -=
len2;' to achieve start of that found pattern.
BASES
None.
NOTES
There is also case insensitive variant of this function,
called: 'txt_datidat()'. 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_pdatdat()' and 'txt_pdatidat()' respectively.
SEE ALSO
EXAMPLE
See source code of 'a-mem_findinfile.c' for a practical
application.
BUGS
None known.
----------------------------------------------------------------------------
| |
| |