#include <string.h>
|
size_t
strlen (const char *s); |
#include <string.h> #include <stdio.h> int main() { int ret; ret = strlen (""); printf("strlen of \"\" is %d\n",ret); ret = strlen ("a"); printf("strlen of \"a\" is %d\n",ret); ret = strlen ("abcd"); printf("strlen of \"abcd\" is %d\n",ret); return 0; }
Output
strlen of "" is 0 strlen of "a" is 1 strlen of "abcd" is 4
© 2007-2009 Nokia Corporation. All rights reserved. This documentation can be used in the connection with this Product to help and support the user. |
|