emacs-prelude/vendor/yasnippet/snippets/c-mode/printf

7 lines
195 B
Text
Raw Normal View History

2012-02-17 22:12:32 +02:00
# -*- mode: snippet -*-
# name: printf
# contributor: joaotavora
# key: printf
# --
printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")
}$2${1:$(if (string-match "%" text) "\);" "")}