{"id":86570,"date":"2026-07-28T21:56:31","date_gmt":"2026-07-28T13:56:31","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/86570.html"},"modified":"2026-07-28T21:56:31","modified_gmt":"2026-07-28T13:56:31","slug":"%e4%b8%80%e6%96%87%e6%90%9e%e6%87%82-strlen-%e5%ad%97%e7%ac%a6%e4%b8%b2%e9%95%bf%e5%ba%a6%e6%b5%8b%e9%87%8f%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/86570.html","title":{"rendered":"\u4e00\u6587\u641e\u61c2 `strlen` \u2014\u2014 \u5b57\u7b26\u4e32\u957f\u5ea6\u6d4b\u91cf\u5668"},"content":{"rendered":"<h3>\u4e00\u3001strlen \u662f\u5565&#xff1f;<\/h3>\n<p>strlen \u662f C \u8bed\u8a00\u6807\u51c6\u5e93\u91cc\u7684\u4e00\u4e2a\u51fd\u6570&#xff0c;\u4e13\u95e8\u7528\u6765\u8ba1\u7b97\u5b57\u7b26\u4e32\u7684\u957f\u5ea6&#xff08;\u4e0d\u542b\u7ed3\u5c3e\u7684 &#039;\\\\0&#039;&#xff09;\u3002<\/p>\n<p>\u901a\u4fd7\u8bf4&#xff1a;\u5b83\u4ece\u5b57\u7b26\u4e32\u5f00\u5934\u4e00\u4e2a\u4e2a\u6570&#xff0c;\u6570\u5230 &#039;\\\\0&#039; \u5c31\u505c&#xff0c;&#039;\\\\0&#039; \u672c\u8eab\u4e0d\u7b97\u3002<\/p>\n<hr \/>\n<h3>\u4e8c\u3001\u600e\u4e48\u7528&#xff1f;<\/h3>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;string.h&gt;<\/span>   <span class=\"token comment\">\/\/ \u522b\u5fd8\u4e86\u8fd9\u4e2a\u5934\u6587\u4ef6<\/span><\/span><\/p>\n<p><span class=\"token class-name\">size_t<\/span> <span class=\"token function\">strlen<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">const<\/span> <span class=\"token keyword\">char<\/span> <span class=\"token operator\">*<\/span>str<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span><\/p>\n<ul>\n<li>\u53c2\u6570&#xff1a;\u5b57\u7b26\u6307\u9488&#xff08;\u5b57\u7b26\u4e32\u9996\u5730\u5740&#xff09;<\/li>\n<li>\u8fd4\u56de\u503c&#xff1a;size_t&#xff08;\u65e0\u7b26\u53f7\u6574\u6570&#xff0c;\u5c31\u662f\u957f\u5ea6&#xff09;<\/li>\n<\/ul>\n<hr \/>\n<h3>\u4e09\u3001\u4e3e\u4e2a\u4f8b\u5b50<\/h3>\n<p><span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;stdio.h&gt;<\/span><\/span><br \/>\n<span class=\"token macro property\"><span class=\"token directive-hash\">#<\/span><span class=\"token directive keyword\">include<\/span> <span class=\"token string\">&lt;string.h&gt;<\/span><\/span><\/p>\n<p><span class=\"token keyword\">int<\/span> <span class=\"token function\">main<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token keyword\">char<\/span> s<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;hello&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;%zu\\\\n&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token function\">strlen<\/span><span class=\"token punctuation\">(<\/span>s<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u8f93\u51fa 5<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>&#034;hello&#034; \u5728\u5185\u5b58\u91cc\u5176\u5b9e\u662f h e l l o \\\\0&#xff0c;strlen \u53ea\u6570\u5230 o&#xff0c;\u6240\u4ee5\u662f 5\u3002<\/p>\n<hr \/>\n<h3>\u56db\u3001\u91cd\u8981&#xff01;\u548c sizeof \u7684\u533a\u522b&#xff08;\u9762\u8bd5\u5e38\u95ee&#xff09;<\/h3>\n<table>\n<tr>\u7279\u6027strlensizeof<\/tr>\n<tbody>\n<tr>\n<td>\u662f\u51fd\u6570<\/td>\n<td>\u2705<\/td>\n<td>\u274c \u662f\u8fd0\u7b97\u7b26<\/td>\n<\/tr>\n<tr>\n<td>\u8ba1\u7b97\u65f6\u673a<\/td>\n<td>\u8fd0\u884c\u65f6<\/td>\n<td>\u7f16\u8bd1\u65f6<\/td>\n<\/tr>\n<tr>\n<td>\u7ed3\u679c<\/td>\n<td>\u5b57\u7b26\u4e32\u5b9e\u9645\u5b57\u7b26\u4e2a\u6570&#xff08;\u4e0d\u542b \\\\0&#xff09;<\/td>\n<td>\u53d8\u91cf\u5360\u7528\u7684\u5185\u5b58\u5b57\u8282\u6570\u6570<\/td>\n<\/tr>\n<tr>\n<td>\u5bf9\u6570\u7ec4<\/td>\n<td>\u904d\u5386\u76f4\u5230 \\\\0<\/td>\n<td>\u8fd4\u56de\u6574\u4e2a\u6570\u7ec4\u5927\u5c0f\u5c0f<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span class=\"token keyword\">char<\/span> s<span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;hello&#034;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;%zu\\\\n&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token function\">strlen<\/span><span class=\"token punctuation\">(<\/span>s<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/\/ 5<\/span><br \/>\n<span class=\"token function\">printf<\/span><span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;%zu\\\\n&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token keyword\">sizeof<\/span><span class=\"token punctuation\">(<\/span>s<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/\/ 6 &#xff08;\u56e0\u4e3a\u5305\u542b\u4e86 &#039;\\\\0&#039;&#xff09;<\/span><\/p>\n<hr \/>\n<h3>\u4e94\u3001\u907f\u5751\u6307\u5357<\/h3>\n<ul>\n<li>\u5fc5\u987b\u4fdd\u8bc1\u5b57\u7b26\u4e32\u4ee5 &#039;\\\\0&#039; \u7ed3\u5c3e&#xff0c;\u5426\u5219 strlen \u4f1a\u4e00\u76f4\u5f80\u540e\u6570&#xff0c;\u76f4\u5230\u9047\u5230\u5185\u5b58\u4e2d\u7684\u968f\u673a 0&#xff0c;\u7ed3\u679c\u4e0d\u53ef\u9884\u77e5&#xff08;\u5bb9\u6613\u5d29\u6e83&#xff09;\u3002<\/li>\n<li>\u4e0d\u80fd\u4f20 NULL&#xff0c;\u4f1a\u6bb5\u9519\u8bef\u3002<\/li>\n<li>\u8fd4\u56de\u503c\u662f size_t&#xff0c;\u65e0\u7b26\u53f7&#xff0c;\u522b\u548c\u8d1f\u6570\u6bd4\u8f83&#xff08;\u6613\u51fa bug&#xff09;\u3002<\/li>\n<\/ul>\n<p><span class=\"token comment\">\/\/ \u9519\u8bef\u793a\u8303<\/span><br \/>\n<span class=\"token keyword\">char<\/span> buf<span class=\"token punctuation\">[<\/span><span class=\"token number\">10<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;abc&#034;<\/span><span class=\"token punctuation\">;<\/span>   <span class=\"token comment\">\/\/ \u5b9e\u9645\u540e\u9762\u81ea\u52a8\u8865 &#039;\\\\0&#039;&#xff0c;\u5b89\u5168<\/span><br \/>\n<span class=\"token keyword\">char<\/span> bad<span class=\"token punctuation\">[<\/span><span class=\"token number\">3<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token char\">&#039;a&#039;<\/span><span class=\"token punctuation\">,<\/span><span class=\"token char\">&#039;b&#039;<\/span><span class=\"token punctuation\">,<\/span><span class=\"token char\">&#039;c&#039;<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">;<\/span>  <span class=\"token comment\">\/\/ \u6ca1\u6709 &#039;\\\\0&#039;&#xff01;strlen(bad) \u5371\u9669&#xff01;<\/span><\/p>\n<hr \/>\n<h3>\u516d\u3001\u81ea\u5df1\u5b9e\u73b0\u4e00\u4e2a\u7b80\u6613\u7248&#xff08;\u52a0\u6df1\u7406\u89e3&#xff09;<\/h3>\n<p><span class=\"token class-name\">size_t<\/span> <span class=\"token function\">my_strlen<\/span><span class=\"token punctuation\">(<\/span><span class=\"token keyword\">const<\/span> <span class=\"token keyword\">char<\/span> <span class=\"token operator\">*<\/span>s<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token class-name\">size_t<\/span> len <span class=\"token operator\">&#061;<\/span> <span class=\"token number\">0<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token keyword\">while<\/span> <span class=\"token punctuation\">(<\/span>s<span class=\"token punctuation\">[<\/span>len<span class=\"token punctuation\">]<\/span> <span class=\"token operator\">!&#061;<\/span> <span class=\"token char\">&#039;\\\\0&#039;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        len<span class=\"token operator\">&#043;&#043;<\/span><span class=\"token punctuation\">;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> len<span class=\"token punctuation\">;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u662f\u4e0d\u662f\u8d85\u7b80\u5355&#xff1f;\u5c31\u662f \u6570\u5230\u96f6\u5c31\u505c\u3002\u3002<\/p>\n<hr \/>\n<h3>\u4e03\u3001\u603b\u7ed3\u4e00\u53e5\u8bdd<\/h3>\n<p>strlen \u53ea\u5173\u5fc3\u4ece\u5f00\u5934\u5230\u7b2c\u4e00\u4e2a &#039;\\\\0&#039; \u4e4b\u95f4\u7684\u5b57\u7b26\u4e2a\u6570&#xff0c;\u4e0d\u5173\u5fc3\u5185\u5b58\u6709\u591a\u5927\u3002<\/p>\n<hr \/>\n<p>\u5982\u679c\u4f60\u89c9\u5f97\u6709\u5e2e\u52a9&#xff0c;\u6b22\u8fce\u70b9\u8d5e\u3001\u6536\u85cf\u3001\u8bc4\u8bba&#xff0c;\u8ba9\u66f4\u591a\u4eba\u770b\u5230&#xff01;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e00\u3001strlen \u662f\u5565&#xff1f;<br \/>\nstrlen \u662f C \u8bed\u8a00\u6807\u51c6\u5e93\u91cc\u7684\u4e00\u4e2a\u51fd\u6570&#xff0c;\u4e13\u95e8\u7528\u6765\u8ba1\u7b97\u5b57\u7b26\u4e32\u7684\u957f\u5ea6&#xff08;\u4e0d\u542b\u7ed3\u5c3e\u7684 \\\\0&#xff09;\u3002\u901a\u4fd7\u8bf4&#xff1a;\u5b83\u4ece\u5b57\u7b26\u4e32\u5f00\u5934\u4e00\u4e2a\u4e2a\u6570&#xff0c;\u6570\u5230 \\\\0 \u5c31\u505c&#xff0c;\\\\0 \u672c\u8eab\u4e0d\u7b97\u3002\u4e8c\u3001\u600e\u4e48\u7528&#xff1f;<br \/>\n#include    \/\/ \u522b\u5fd8\u4e86\u8fd9\u4e2a\u5934\u6587\u4ef6size_t strlen(const char *str);\u53c2\u6570&#xff1a;\u5b57\u7b26\u6307\u9488&amp;#xff08<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[9769,8944,174],"topic":[],"class_list":["post-86570","post","type-post","status-publish","format-standard","hentry","category-server","tag-strlen","tag-8944","tag-c"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e00\u6587\u641e\u61c2 `strlen` \u2014\u2014 \u5b57\u7b26\u4e32\u957f\u5ea6\u6d4b\u91cf\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/86570.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e00\u6587\u641e\u61c2 `strlen` \u2014\u2014 \u5b57\u7b26\u4e32\u957f\u5ea6\u6d4b\u91cf\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e00\u3001strlen \u662f\u5565&#xff1f; strlen \u662f C \u8bed\u8a00\u6807\u51c6\u5e93\u91cc\u7684\u4e00\u4e2a\u51fd\u6570&#xff0c;\u4e13\u95e8\u7528\u6765\u8ba1\u7b97\u5b57\u7b26\u4e32\u7684\u957f\u5ea6&#xff08;\u4e0d\u542b\u7ed3\u5c3e\u7684 \\0&#xff09;\u3002\u901a\u4fd7\u8bf4&#xff1a;\u5b83\u4ece\u5b57\u7b26\u4e32\u5f00\u5934\u4e00\u4e2a\u4e2a\u6570&#xff0c;\u6570\u5230 \\0 \u5c31\u505c&#xff0c;\\0 \u672c\u8eab\u4e0d\u7b97\u3002\u4e8c\u3001\u600e\u4e48\u7528&#xff1f; #include  \/\/ \u522b\u5fd8\u4e86\u8fd9\u4e2a\u5934\u6587\u4ef6size_t strlen(const char *str);\u53c2\u6570&#xff1a;\u5b57\u7b26\u6307\u9488&amp;#xff08\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/86570.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-28T13:56:31+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86570.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/86570.html\",\"name\":\"\u4e00\u6587\u641e\u61c2 `strlen` \u2014\u2014 \u5b57\u7b26\u4e32\u957f\u5ea6\u6d4b\u91cf\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-28T13:56:31+00:00\",\"dateModified\":\"2026-07-28T13:56:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/86570.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/86570.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/86570.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e00\u6587\u641e\u61c2 `strlen` \u2014\u2014 \u5b57\u7b26\u4e32\u957f\u5ea6\u6d4b\u91cf\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u4e00\u6587\u641e\u61c2 `strlen` \u2014\u2014 \u5b57\u7b26\u4e32\u957f\u5ea6\u6d4b\u91cf\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/86570.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4e00\u6587\u641e\u61c2 `strlen` \u2014\u2014 \u5b57\u7b26\u4e32\u957f\u5ea6\u6d4b\u91cf\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e00\u3001strlen \u662f\u5565&#xff1f; strlen \u662f C \u8bed\u8a00\u6807\u51c6\u5e93\u91cc\u7684\u4e00\u4e2a\u51fd\u6570&#xff0c;\u4e13\u95e8\u7528\u6765\u8ba1\u7b97\u5b57\u7b26\u4e32\u7684\u957f\u5ea6&#xff08;\u4e0d\u542b\u7ed3\u5c3e\u7684 \\0&#xff09;\u3002\u901a\u4fd7\u8bf4&#xff1a;\u5b83\u4ece\u5b57\u7b26\u4e32\u5f00\u5934\u4e00\u4e2a\u4e2a\u6570&#xff0c;\u6570\u5230 \\0 \u5c31\u505c&#xff0c;\\0 \u672c\u8eab\u4e0d\u7b97\u3002\u4e8c\u3001\u600e\u4e48\u7528&#xff1f; #include  \/\/ \u522b\u5fd8\u4e86\u8fd9\u4e2a\u5934\u6587\u4ef6size_t strlen(const char *str);\u53c2\u6570&#xff1a;\u5b57\u7b26\u6307\u9488&amp;#xff08","og_url":"https:\/\/www.wsisp.com\/helps\/86570.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-28T13:56:31+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"1 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/86570.html","url":"https:\/\/www.wsisp.com\/helps\/86570.html","name":"\u4e00\u6587\u641e\u61c2 `strlen` \u2014\u2014 \u5b57\u7b26\u4e32\u957f\u5ea6\u6d4b\u91cf\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-28T13:56:31+00:00","dateModified":"2026-07-28T13:56:31+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/86570.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/86570.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/86570.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4e00\u6587\u641e\u61c2 `strlen` \u2014\u2014 \u5b57\u7b26\u4e32\u957f\u5ea6\u6d4b\u91cf\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/86570","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=86570"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/86570\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=86570"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=86570"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=86570"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=86570"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}