{"id":852,"date":"2026-04-28T15:12:16","date_gmt":"2026-04-28T07:12:16","guid":{"rendered":"https:\/\/hsiang.cc\/?p=852"},"modified":"2026-04-28T15:17:29","modified_gmt":"2026-04-28T07:17:29","slug":"c-%e7%9a%84%e9%82%a3%e4%ba%9b%e7%9c%89%e8%a7%92%e6%b0%b8%e9%81%a0%e5%88%9d%e5%a7%8b%e5%8c%96%e4%bd%a0%e7%9a%84%e8%ae%8a%e6%95%b8-%e9%82%a3%e5%80%8b%e7%a5%9e%e7%a7%98%e7%9a%84%e5%80%bc","status":"publish","type":"post","link":"https:\/\/hsiang.cc\/?p=852","title":{"rendered":"[C \u7684\u90a3\u4e9b\u7709\u89d2]\u6c38\u9060\u521d\u59cb\u5316\u4f60\u7684\u8b8a\u6578 \u2014 \u90a3\u500b\u795e\u79d8\u7684\u503c"},"content":{"rendered":"<p>\u525b\u5b78 C \u7684\u6642\u5019\uff0c\u8001\u5e2b\u8aaa\u904e\uff1a\u300c\u8b8a\u6578\u8981\u8a18\u5f97\u521d\u59cb\u5316\u3002\u300d<\/p>\n<p>\u6211\u9ede\u9ede\u982d\uff0c\u7136\u5f8c\u9084\u662f\u7e7c\u7e8c\u5beb\uff1a<\/p>\n<pre><code class=\"language-c\">int count;\nchar buf[64];\nint *ptr;<\/code><\/pre>\n<p>\u53cd\u6b63\u7576\u4e0b\u7a0b\u5f0f\u8dd1\u8d77\u4f86\u597d\u50cf\u4e5f\u6c92\u554f\u984c\u3002<\/p>\n<p>\u76f4\u5230\u6709\u4e00\u5929\uff0c\u767c\u73fe\u7a0b\u5f0f\u51fa\u73fe\u4e00\u500b\u300c\u5076\u767c\u6027\u300d\u7684\u5947\u602a\u884c\u70ba\u3002<br \/>\n\u6709\u6642\u5019\u6b63\u5e38\uff0c\u6709\u6642\u5019\u4e0d\u6b63\u5e38\uff0c\u5b8c\u5168\u6c92\u6709\u898f\u5f8b\u3002<\/p>\n<p><!--more--><\/p>\n<p>Debug \u4e86\u5169\u5929\uff0c\u6700\u5f8c\u767c\u73fe\u662f\u4e00\u500b\u6c92\u6709\u521d\u59cb\u5316\u7684\u8b8a\u6578\uff0c<br \/>\n\u88e1\u9762\u7684\u503c\u53d6\u6c7a\u65bc<strong>\u4e0a\u6b21\u90a3\u584a\u8a18\u61b6\u9ad4\u88ab\u8ab0\u7528\u904e\u3001\u653e\u4e86\u4ec0\u9ebc\u6771\u897f\u3002<\/strong><\/p>\n<p>\u5728\u958b\u767c\u6a5f\u4e0a\u8dd1\u90fd\u6b63\u5e38\uff0c\u56e0\u70ba\u8a18\u61b6\u9ad4\u7684\u521d\u59cb\u72c0\u614b\u525b\u597d\u662f 0\u3002<br \/>\n\u63db\u5230\u5ba2\u6236\u7684\u74b0\u5883\uff0c\u8dd1\u5e7e\u500b\u5c0f\u6642\u4e4b\u5f8c\u8a18\u61b6\u9ad4\u72c0\u614b\u4e0d\u4e00\u6a23\u4e86\uff0c\u5c31\u7206\u4e86\u3002<\/p>\n<p>\u90a3\u6b21\u4e4b\u5f8c\uff0c\u6211\u5c0d\u300c\u521d\u59cb\u5316\u300d\u9019\u4ef6\u4e8b\u8a8d\u771f\u591a\u4e86\u3002<\/p>\n<hr \/>\n<h2>\u672a\u521d\u59cb\u5316\u7684\u8b8a\u6578\u88e1\u9762\u662f\u4ec0\u9ebc\uff1f<\/h2>\n<p>\u7b54\u6848\u662f\uff1a<strong>\u4e0d\u77e5\u9053\u3002<\/strong><\/p>\n<p>C \u8a9e\u8a00\u898f\u683c\u8aaa\uff0c\u8b80\u53d6\u672a\u521d\u59cb\u5316\u7684\u81ea\u52d5\u8b8a\u6578\uff08local variable\uff09\u662f <strong>undefined behavior<\/strong>\u3002<\/p>\n<p>\u5be6\u969b\u4e0a\uff0c\u90a3\u584a stack \u8a18\u61b6\u9ad4\u88e1\u653e\u7684\u662f\u300c\u4e0a\u4e00\u6b21\u88ab\u4f7f\u7528\u6642\u7559\u4e0b\u7684\u503c\u300d\uff0c<br \/>\n\u4e5f\u5c31\u662f\u4fd7\u7a31\u7684<strong>\u5783\u573e\u503c\uff08garbage value\uff09<\/strong>\u3002<\/p>\n<pre><code class=\"language-c\">void foo(void) {\n    int x;\n    printf(&quot;%d\\n&quot;, x);  \/\/ \u53ef\u80fd\u662f 0\uff0c\u53ef\u80fd\u662f 32767\uff0c\u53ef\u80fd\u662f\u4efb\u4f55\u503c\n}<\/code><\/pre>\n<p>\u5728\u4f60\u7684\u958b\u767c\u74b0\u5883\u8dd1\uff0c\u53ef\u80fd\u6bcf\u6b21\u90fd\u5370\u51fa 0\uff0c<br \/>\n\u56e0\u70ba\u9019\u584a stack \u525b\u597d\u6c92\u88ab\u52d5\u904e\u3002<\/p>\n<p>\u4f46\u9019\u4e0d\u4ee3\u8868\u7a0b\u5f0f\u662f\u5c0d\u7684\uff0c\u53ea\u662f\u525b\u597d\u6c92\u51fa\u4e8b\u3002<\/p>\n<hr \/>\n<h2>\u4e09\u7a2e\u8a18\u61b6\u9ad4\u5340\u57df\uff0c\u884c\u70ba\u4e0d\u4e00\u6a23<\/h2>\n<p>\u9019\u88e1\u8981\u7a0d\u5fae\u5206\u4e00\u4e0b\uff0c\u4e0d\u540c\u5340\u57df\u7684\u8b8a\u6578\uff0c\u521d\u59cb\u5316\u884c\u70ba\u4e0d\u540c\uff1a<\/p>\n<h3>Global \/ Static \u8b8a\u6578 \u2014 \u81ea\u52d5\u521d\u59cb\u5316\u70ba 0<\/h3>\n<pre><code class=\"language-c\">int global_count;           \/\/ \u4fdd\u8b49\u662f 0\nstatic int module_state;    \/\/ \u4fdd\u8b49\u662f 0\n\nvoid foo(void) {\n    static int call_count;  \/\/ \u4fdd\u8b49\u662f 0\uff08\u53ea\u6709\u7b2c\u4e00\u6b21\uff09\n}<\/code><\/pre>\n<p>\u9019\u4e9b\u8b8a\u6578\u653e\u5728 BSS segment\uff0c\u7a0b\u5f0f\u555f\u52d5\u6642\u6703\u88ab\u6e05\u96f6\u3002<br \/>\n\u6240\u4ee5\u5c31\u7b97\u4f60\u6c92\u6709\u660e\u78ba\u521d\u59cb\u5316\uff0c\u503c\u4e5f\u662f 0\u3002<\/p>\n<p>\u4f46\u6211\u9084\u662f\u5efa\u8b70\u660e\u78ba\u5beb\u51fa\u4f86\uff1a<\/p>\n<pre><code class=\"language-c\">int global_count = 0;\nstatic int module_state = STATE_IDLE;<\/code><\/pre>\n<p>\u539f\u56e0\u662f<strong>\u8b93\u8b80\u7a0b\u5f0f\u78bc\u7684\u4eba\u77e5\u9053\u4f60\u662f\u6545\u610f\u7d66 0\uff0c\u4e0d\u662f\u5fd8\u8a18\u521d\u59cb\u5316<\/strong>\u3002<br \/>\n\u9019\u5169\u4ef6\u4e8b\u770b\u8d77\u4f86\u4e00\u6a23\uff0c\u4f46\u610f\u5716\u5b8c\u5168\u4e0d\u540c\u3002<\/p>\n<hr \/>\n<h3>Local \u8b8a\u6578 \u2014 \u4e0d\u6703\u81ea\u52d5\u521d\u59cb\u5316<\/h3>\n<pre><code class=\"language-c\">void foo(void) {\n    int count;        \/\/ \u5783\u573e\u503c\n    char buf[64];     \/\/ 64 \u500b\u5783\u573e\u503c\n    int *ptr;         \/\/ \u53ef\u80fd\u6307\u5411\u4efb\u4f55\u5730\u65b9\n}<\/code><\/pre>\n<p>\u9019\u4e9b\u653e\u5728 stack\uff0c\u4e0d\u6703\u81ea\u52d5\u6e05\u96f6\u3002<br \/>\n<strong>\u4e00\u5b9a\u8981\u81ea\u5df1\u521d\u59cb\u5316\u3002<\/strong><\/p>\n<pre><code class=\"language-c\">void foo(void) {\n    int count = 0;\n    char buf[64];\n    memset(buf, 0, sizeof(buf));\n    int *ptr = NULL;\n}<\/code><\/pre>\n<hr \/>\n<h3>Heap \u8a18\u61b6\u9ad4 \u2014 \u770b\u4f60\u7528\u54ea\u500b\u51fd\u5f0f<\/h3>\n<pre><code class=\"language-c\">\/\/ malloc\uff1a\u4e0d\u521d\u59cb\u5316\uff0c\u88e1\u9762\u662f\u5783\u573e\u503c\nint *arr = malloc(10 * sizeof(int));\n\n\/\/ calloc\uff1a\u521d\u59cb\u5316\u70ba 0\nint *arr = calloc(10, sizeof(int));<\/code><\/pre>\n<p>\u7528 <code>malloc<\/code> \u4e4b\u5f8c\u5982\u679c\u6c92\u6709\u521d\u59cb\u5316\u5c31\u76f4\u63a5\u4f7f\u7528\uff0c<br \/>\n\u8ddf local \u8b8a\u6578\u4e00\u6a23\uff0c\u662f undefined behavior\u3002<\/p>\n<hr \/>\n<h2>\u5d4c\u5165\u5f0f\u7684\u7279\u5225\u72c0\u6cc1<\/h2>\n<p>\u5728\u5d4c\u5165\u5f0f\u958b\u767c\uff0c\u9019\u500b\u554f\u984c\u66f4\u5fae\u5999\u3002<\/p>\n<h3>Reset \u4e4b\u5f8c\u4e0d\u4e00\u5b9a\u662f\u4e7e\u6de8\u7684<\/h3>\n<p>\u67d0\u4e9b MCU \u5728 warm reset\uff08\u8edf\u9ad4\u91cd\u7f6e\uff09\u4e4b\u5f8c\uff0c<br \/>\nRAM \u7684\u5167\u5bb9\u4e0d\u6703\u88ab\u6e05\u9664\uff0c\u9084\u662f\u4e0a\u6b21\u57f7\u884c\u6642\u7684\u503c\u3002<\/p>\n<p>\u5982\u679c\u4f60\u7684\u7a0b\u5f0f\u4f9d\u8cf4\u300creset \u4e4b\u5f8c\u8b8a\u6578\u662f 0\u300d\u9019\u500b\u5047\u8a2d\uff0c<br \/>\n\u5728 cold boot\uff08\u91cd\u65b0\u4e0a\u96fb\uff09\u6b63\u5e38\uff0cwarm reset \u5c31\u53ef\u80fd\u51fa\u554f\u984c\u3002<\/p>\n<pre><code class=\"language-c\">\/\/ \u9019\u500b\u5047\u8a2d\u5728 warm reset \u5f8c\u53ef\u80fd\u662f\u932f\u7684\nstatic int error_count;  \/\/ \u4ee5\u70ba\u662f 0\uff0c\u5176\u5be6\u662f\u4e0a\u6b21\u7684\u503c<\/code><\/pre>\n<p>\u89e3\u6cd5\u662f\u660e\u78ba\u521d\u59cb\u5316\uff0c\u6216\u662f\u5728 startup code \u88e1\u78ba\u4fdd BSS \u88ab\u6e05\u96f6\u3002<\/p>\n<hr \/>\n<h3>Struct \u7684\u521d\u59cb\u5316<\/h3>\n<p>Struct \u5f88\u5bb9\u6613\u6f0f\u6389\u67d0\u4e9b\u6b04\u4f4d\uff1a<\/p>\n<pre><code class=\"language-c\">typedef struct {\n    uint8_t  device_id;\n    uint16_t timeout_ms;\n    bool     is_enabled;\n    uint8_t  retry_count;\n} DeviceConfig;\n\n\/\/ \u274c \u53ea\u521d\u59cb\u5316\u90e8\u5206\u6b04\u4f4d\uff0c\u5176\u4ed6\u662f\u5783\u573e\u503c\nDeviceConfig cfg;\ncfg.device_id = 1;\ncfg.is_enabled = true;\n\/\/ timeout_ms \u548c retry_count \u662f\u5783\u573e\u503c\uff01<\/code><\/pre>\n<p>\u6211\u7684\u7fd2\u6163\u662f\u5148\u7528 <code>memset<\/code> \u6e05\u96f6\uff0c\u518d\u8a2d\u5b9a\u9700\u8981\u7684\u503c\uff1a<\/p>\n<pre><code class=\"language-c\">\/\/ \u2705\nDeviceConfig cfg;\nmemset(&amp;cfg, 0, sizeof(cfg));\ncfg.device_id = 1;\ncfg.is_enabled = true;\n\/\/ timeout_ms = 0, retry_count = 0\uff0c\u81f3\u5c11\u662f\u5df2\u77e5\u7684\u503c<\/code><\/pre>\n<p>\u6216\u662f\u7528 C99 \u7684 designated initializer\uff0c\u66f4\u6e05\u695a\uff1a<\/p>\n<pre><code class=\"language-c\">\/\/ \u2705 C99 \u5beb\u6cd5\uff0c\u6c92\u6709\u5217\u51fa\u7684\u6b04\u4f4d\u81ea\u52d5\u662f 0\nDeviceConfig cfg = {\n    .device_id  = 1,\n    .is_enabled = true,\n};<\/code><\/pre>\n<p>\u9019\u500b\u5beb\u6cd5\u6211\u5f88\u559c\u6b61\uff0c\u4e00\u773c\u5c31\u77e5\u9053\u54ea\u4e9b\u6b04\u4f4d\u662f\u523b\u610f\u8a2d\u5b9a\u7684\uff0c<br \/>\n\u54ea\u4e9b\u662f\u7528\u9810\u8a2d\u503c\uff080\uff09\u3002<\/p>\n<hr \/>\n<h3>\u6307\u6a19\u4e00\u5b9a\u8981\u521d\u59cb\u5316\u70ba NULL<\/h3>\n<p>\u672a\u521d\u59cb\u5316\u7684\u6307\u6a19\u662f\u6700\u5371\u96aa\u7684\uff1a<\/p>\n<pre><code class=\"language-c\">\/\/ \u274c\nuint8_t *data_buf;\n\nif (some_condition) {\n    data_buf = malloc(256);\n}\n\n\/\/ \u5982\u679c some_condition \u662f false\uff0cdata_buf \u662f\u5783\u573e\u503c\n\/\/ \u9019\u88e1 dereference \u5c31\u662f undefined behavior\uff0c\u901a\u5e38\u76f4\u63a5 crash\nprocess_data(data_buf);<\/code><\/pre>\n<pre><code class=\"language-c\">\/\/ \u2705\nuint8_t *data_buf = NULL;\n\nif (some_condition) {\n    data_buf = malloc(256);\n}\n\nif (data_buf != NULL) {\n    process_data(data_buf);\n}<\/code><\/pre>\n<p>\u521d\u59cb\u5316\u70ba NULL \u4e4b\u5f8c\uff0c\u81f3\u5c11\u4f60\u53ef\u4ee5\u6aa2\u67e5\u5b83\uff0c<br \/>\n\u4e0d\u6703\u5728\u4e0d\u77e5\u60c5\u7684\u60c5\u6cc1\u4e0b\u5b58\u53d6\u5230\u96a8\u6a5f\u7684\u8a18\u61b6\u9ad4\u4f4d\u7f6e\u3002<\/p>\n<hr \/>\n<h2>\u7de8\u8b6f\u5668\u53ef\u4ee5\u5e6b\u4f60\u6293<\/h2>\n<p>\u958b\u555f\u8b66\u544a\u4e4b\u5f8c\uff0c\u7de8\u8b6f\u5668\u901a\u5e38\u53ef\u4ee5\u6293\u5230\u660e\u986f\u7684\u672a\u521d\u59cb\u5316\u4f7f\u7528\uff1a<\/p>\n<pre><code class=\"language-bash\">gcc -Wall -Wextra -Wuninitialized your_code.c<\/code><\/pre>\n<pre><code>warning: &#039;count&#039; is used uninitialized [-Wuninitialized]<\/code><\/pre>\n<p>\u4f46\u7de8\u8b6f\u5668\u4e0d\u662f\u842c\u80fd\u7684\uff0c\u8907\u96dc\u7684\u63a7\u5236\u6d41\u7a0b\u5b83\u4e0d\u4e00\u5b9a\u6293\u5f97\u5230\uff1a<\/p>\n<pre><code class=\"language-c\">int result;\n\nif (condition_a) {\n    result = compute_a();\n} else if (condition_b) {\n    result = compute_b();\n}\n\/\/ \u5982\u679c\u5169\u500b\u689d\u4ef6\u90fd\u4e0d\u6210\u7acb\uff0cresult \u662f\u672a\u521d\u59cb\u5316\u7684\n\/\/ \u67d0\u4e9b\u60c5\u6cc1\u4e0b\u7de8\u8b6f\u5668\u4e0d\u6703\u8b66\u544a\n\nreturn result;  \/\/ \u6f5b\u5728\u7684\u554f\u984c<\/code><\/pre>\n<p>\u6240\u4ee5\u9084\u662f\u8981\u990a\u6210\u7fd2\u6163\uff0c\u4e0d\u80fd\u5b8c\u5168\u4f9d\u8cf4\u7de8\u8b6f\u5668\u3002<\/p>\n<hr \/>\n<h2>\u8aaa\u5be6\u8a71<\/h2>\n<p>\u521d\u59cb\u5316\u9019\u4ef6\u4e8b\uff0c\u8aaa\u8d77\u4f86\u5f88\u7c21\u55ae\uff0c\u505a\u8d77\u4f86\u9700\u8981\u4e00\u9ede\u7d00\u5f8b\u3002<\/p>\n<p>\u8d95\u9032\u5ea6\u7684\u6642\u5019\uff0c\u5ba3\u544a\u5b8c\u8b8a\u6578\u5c31\u76f4\u63a5\u7528\uff0c<br \/>\n\u53cd\u6b63\u5728\u81ea\u5df1\u6a5f\u5668\u4e0a\u8dd1\u90fd\u6b63\u5e38\u3002<\/p>\n<p>\u4f46\u5d4c\u5165\u5f0f\u7522\u54c1\u7684\u554f\u984c\u662f\uff0c\u4f60\u7684\u958b\u767c\u74b0\u5883\u548c\u5ba2\u6236\u7684\u74b0\u5883\u4e0d\u4e00\u6a23\uff0c<br \/>\n\u8a18\u61b6\u9ad4\u72c0\u614b\u4e0d\u4e00\u6a23\uff0c\u8dd1\u7684\u6642\u9593\u4e0d\u4e00\u6a23\uff0c\u6eab\u5ea6\u4e0d\u4e00\u6a23\u3002<\/p>\n<p>\u90a3\u7a2e\u300c\u5728\u6211\u9019\u88e1\u6c92\u554f\u984c\u300d\u7684 bug\uff0c<br \/>\n\u901a\u5e38\u90fd\u662f\u67d0\u500b\u5730\u65b9\u4f9d\u8cf4\u4e86\u672a\u5b9a\u7fa9\u7684\u884c\u70ba\u3002<\/p>\n<p>\u591a\u6253\u5e7e\u500b <code>= 0<\/code>\u3001<code>= NULL<\/code>\u3001<code>memset<\/code>\uff0c<br \/>\n\u771f\u7684\u53ef\u4ee5\u7701\u6389\u5f88\u591a\u4e0d\u5fc5\u8981\u7684 debug \u6642\u9593\u3002<\/p>\n<hr \/>\n<h2>\u9019\u7bc7\u7684 Checklist<\/h2>\n<ul>\n<li>[ ] Local \u8b8a\u6578\u5ba3\u544a\u6642\u6709\u660e\u78ba\u521d\u59cb\u5316<\/li>\n<li>[ ] \u6307\u6a19\u521d\u59cb\u5316\u70ba <code>NULL<\/code>\uff0c\u4e0d\u662f\u8b93\u5b83\u6307\u5411\u96a8\u6a5f\u4f4d\u7f6e<\/li>\n<li>[ ] <code>malloc<\/code> \u4e4b\u5f8c\u6709\u521d\u59cb\u5316\u8a18\u61b6\u9ad4\u5167\u5bb9\uff08\u6216\u6539\u7528 <code>calloc<\/code>\uff09<\/li>\n<li>[ ] Struct \u521d\u59cb\u5316\u6709\u7528 <code>memset<\/code> \u6216 designated initializer<\/li>\n<li>[ ] Global \/ static \u8b8a\u6578\u6709\u660e\u78ba\u5beb\u51fa\u521d\u59cb\u503c\uff0c\u8868\u793a\u662f\u6545\u610f\u7684<\/li>\n<li>[ ] \u8907\u96dc\u63a7\u5236\u6d41\u7a0b\u7684\u8b8a\u6578\uff0c\u78ba\u8a8d\u6240\u6709\u8def\u5f91\u90fd\u6709\u521d\u59cb\u5316<\/li>\n<li>[ ] \u958b\u555f\u7de8\u8b6f\u5668\u7684 <code>-Wuninitialized<\/code> \u8b66\u544a<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u525b\u5b78 C \u7684\u6642\u5019\uff0c\u8001\u5e2b\u8aaa\u904e\uff1a\u300c\u8b8a\u6578\u8981\u8a18\u5f97\u521d\u59cb\u5316\u3002\u300d \u6211\u9ede\u9ede\u982d\uff0c\u7136\u5f8c\u9084\u662f\u7e7c\u7e8c\u5beb\uff1a  &hellip; <a href=\"https:\/\/hsiang.cc\/?p=852\">\u95b1\u8b80\u5168\u6587 <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[15],"tags":[960,959,952,912,922,935,958,957,961,955,954,919,956,953,917],"class_list":{"0":"post-852","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"hentry","6":"category-prog","7":"tag-bss-segment","8":"tag-c99","9":"tag-c","13":"tag-designated-initializer","14":"tag-memset","15":"tag-stack","16":"tag-undefined-behavior","17":"tag-954","19":"tag-956","20":"tag-953","21":"tag-917"},"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/hsiang.cc\/index.php?rest_route=\/wp\/v2\/posts\/852","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hsiang.cc\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hsiang.cc\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hsiang.cc\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hsiang.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=852"}],"version-history":[{"count":2,"href":"https:\/\/hsiang.cc\/index.php?rest_route=\/wp\/v2\/posts\/852\/revisions"}],"predecessor-version":[{"id":854,"href":"https:\/\/hsiang.cc\/index.php?rest_route=\/wp\/v2\/posts\/852\/revisions\/854"}],"wp:attachment":[{"href":"https:\/\/hsiang.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=852"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hsiang.cc\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=852"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hsiang.cc\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=852"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}