]> code.delx.au - gnu-emacs-elpa/blob - packages/yasnippet/snippets/c-mode/printf
Add 'packages/html5-schema/' from commit '6e7c7c331e7f6692be6c7d39fb9485792f0d3513'
[gnu-emacs-elpa] / packages / yasnippet / snippets / c-mode / printf
1 # -*- mode: snippet -*-
2 # name: printf
3 # contributor: joaotavora
4 # key: printf
5 # --
6 printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")
7 }$2${1:$(if (string-match "%" text) "\);" "")}