my-emacs-d/elpa/yasnippet-20160924.2001/snippets/cc-mode/printf
2016-10-20 10:27:10 +02:00

6 lines
176 B
Plaintext

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