C: malloc, str functions | TeX: integral, bold

- sh: var with quotes
This commit is contained in:
2018-02-01 16:59:44 -05:00
parent 8877960762
commit 9103500922
5 changed files with 36 additions and 1 deletions

View File

@@ -3,3 +3,19 @@ for (int i = 0; i < ${1:count}; i++) {
${2}
}
endsnippet
snippet mlc "malloc" i
= malloc(sizeof(${1:type}) * ${2:amt});
endsnippet
snippet stl "strlen"
strlen(${1:var})
endsnippet
snippet scp "strcpy"
strcpy(${1:dest}, ${2:str});
endsnippet
snippet cmt "Line comment" b
/* ${1:text} */
endsnippet