1 // Copyright 2016 The Fuchsia Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #pragma once 6 7 #include <stdarg.h> 8 9 #include <zircon/compiler.h> 10 #include <fbl/string.h> 11 12 namespace fbl { 13 14 // Formats |printf()|-like input and returns it as an |fbl::String|. 15 String StringPrintf(const char* format, ...) 16 __PRINTFLIKE(1, 2) __WARN_UNUSED_RESULT; 17 18 // Formats |vprintf()|-like input and returns it as an |fbl::String|. 19 String StringVPrintf(const char* format, va_list ap) 20 __WARN_UNUSED_RESULT; 21 22 } // namespace fbl 23