<< Previous | Next >> | |
|
unsigned int xstrlen( long src );
Description
- Return the length of the string in xmem pointed to by
src
. If there is no null terminator within the first 65536 bytes of the string, then the return value will be meaningless.Parameters
- src
- xmem (linear) address of the first character of the string. Note: to perform a normal null-terminated search, ensure that
src
is in the range 0..220-1. If the MSB ofsrc
is not zero (i.e., bits 24-31) then that character will be used to terminate the search rather than the standard null terminator. E.g., to determine the length of a string terminated by '@':
xstrlen(paddr(my_str) | (long)'@' << 24);
Return value
- Length of string, not counting the terminator.
Library
- XMEM.LIB
Dynamic C Functions | << Previous | Next >> | rabbit.com |