代码拉取完成,页面将自动刷新
"calloc func": {
"prefix": "calloc",
"body": [
"${1:int} *${2:it} = (${1:int}*)calloc(1, sizeof(${1:int}));\nif (${2:it} == 0) {\n\treturn$0;\n}"
],
"description": "calloc"
},
"Typedef Struct":{
"prefix": "typedef struct",
"body": "typedef struct {\n\t$0\n} ${1:MyCustomType};"
},
"Define i Loop":{
"prefix": "ifor",
"body": "int ${1:i};\nfor (${1:i} = 0; ${1:i} < ${2:count}; ${1:i}++) {\n\t$0\n}"
},
"print func": {
"prefix": "print",
"body": [
"printf(\"${2:it}=${1:%d}\\n\", ${2:it});"
],
"description": "print"
},
"While Loop":{
"prefix": "while",
"body": "while ($1) {\n\t$0\n}"
},
"If Condition":{
"prefix": "if",
"body": "if ($0) {\n\t\n}"
},
"Else":{
"prefix": "else",
"body": "else {\n\t$0\n}"
},
"else if":{
"prefix": "else if",
"body": "else if ($0) {\n\t\n}"
},
"Switch Statement":{
"prefix": "switch",
"body": "switch ($0) {\ncase :\n\t\n\tbreak;\ndefault :\n\t\n\tbreak;\n}"
},
"case break":{
"prefix": "case",
"body": "case $0:\n\t\n\tbreak;\n"
},
"any function":{
"prefix": "func",
"body": "${1:int} ${2:name}($3)\n{\n\t$5\n\treturn ${4:0};\n}"
},
"utnode":{
"prefix": "hstruct",
"body": "typedef struct {\n\t$0\n UT_hash_handle hh;\n} ${1:type};"
},
"hiter":{
"prefix": "hiter",
"body": "${1:Hit} *it;\n${1:Hit} *tmp;\nHASH_ITER(hh, ${2:g_htbl}, it, tmp) {\n\t$0\n}"
},
"liter":{
"prefix": "liter",
"body": "${1:Lit} *it;\n${1:Lit} *tmp;\nLIST_FOR_EACH_ENTRY_SAFE(it, tmp, ${2:list}, ${1:Lit}, node) {\n\t$0\n}"
},
"return":{
"prefix": "ret",
"body": "return ${1:0}$0;"
},
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。