strlen, strnlen - determine the number of non-null bytes in a string
#include <sys/ddi.h> size_t strlen(const char *s); size_t strnlen(const char *s, size_t n);
Solaris DDI specific (Solaris DDI).
s
n
The strlen() function returns the number of non-null bytes in the string argument s.
The strnlen() function returns the smaller of n or the number of non-null bytes in s. The strnlen() function never examines more than n bytes of the string pointed to by s.
The strlen() function returns the number of non-null bytes in s.
The strnlen() function returns the smaller of n or the number of non-null bytes in s.
These functions can be called from user, interrupt, or kernel context.
Writing Device Drivers
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |