[PATCH] D25255: Add a c_str() method to StringRef, similar to data() but asserting if the string isn't null terminated (NFC)
Joerg Sonnenberger via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 4 15:43:32 PDT 2016
On Tue, Oct 04, 2016 at 10:38:08PM +0000, Zachary Turner via llvm-commits wrote:
> Can you use %*s format specifier in those cases?
>
> printf("%*s", s.size(), s.data());
Don't forget the int cast...
Joerg
More information about the llvm-commits
mailing list