 | C251 User's Guide |  |
|
|
| hstrlen| Summary |
#include <string.h>
unsigned long hstrlen (
const char huge *src); /* source string */
| | Description | The hstrlen function calculates the length, in bytes, of src. This calculation does not include the null terminating character. Note - This function uses huge pointers to objects.
| | Return Value | The hstrlen function returns the length of src. | | See Also | strlen | | Example |
#include <string.h>
#include <stdio.h> /* for printf */
char huge buf [] = "Find the length of this string";
void tst_hstrlen (void) {
unsigned long len;
len = hstrlen (buf);
printf ("string length is %ld\n", len);
}
|
|
|