 | C166 User's Guide |  |
|
|
| xstrlen| Summary |
#include <string.h>
unsigned int xstrlen (
const char xhuge *src); /* source string */
| | Description | The xstrlen function calculates the length, in bytes, of src. This calculation does not include the null terminating character. Note - This function uses xhuge pointers to objects and may be used in any memory model other than Tiny Model.
| | Return Value | The xstrlen function returns the length of src. | | See Also | xstrcmp, xstrcpy, xstrncpy | | Example |
#include <string.h>
#include <stdio.h> /* for printf */
void tst_xstrlen (void) {
char buf [] = "Find the length of this string";
unsigned int len;
len = xstrlen (buf);
printf ("string length is %d\n", len);
}
|
|
|