]> code.delx.au - gnu-emacs-elpa/blob - packages/yasnippet/snippets/c-mode/printf
Update packages/yasnippet by subtree-merging from its github-based upstream
[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) "\);" "")}