my-emacs-d/elpa/yasnippet-20161022.646/snippets/cc-mode/printf

6 lines
176 B
Plaintext
Raw Normal View History

# -*- mode: snippet -*-
# name: printf
# key: printf
# --
printf("${1:%s}\\n"${1:$(if (string-match "%" yas-text) ", " "\);")
}$2${1:$(if (string-match "%" yas-text) "\);" "")}