Dotfiles for my tiling window manager + terminal workflow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
329 B

  1. snippet forg "Generic for"
  2. for (int i = 0; i < ${1:count}; i++) {
  3. ${2}
  4. }
  5. endsnippet
  6. snippet mlc "malloc" i
  7. = malloc(sizeof(${1:type}) * ${2:amt});
  8. endsnippet
  9. snippet stl "strlen"
  10. strlen(${1:var})
  11. endsnippet
  12. snippet scp "strcpy"
  13. strcpy(${1:dest}, ${2:str});
  14. endsnippet
  15. snippet cmt "Line comment" b
  16. /* ${1:text} */
  17. endsnippet