Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / native_client_sdk / src / libraries / error_handling / string_stream.h
blobb35bc80303537da9c08929f6d9be8e4286cc59ea
1 /*
2 * Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file.
5 */
7 #ifndef ERROR_HANDLING_STRING_STREAM_H
8 #define ERROR_HANDLING_STRING_STREAM_H
11 * Support for a stream stream in 'C', which is appended to via an sprintf-like
12 * function.
15 #include <stdarg.h>
16 #include <stdint.h>
18 typedef struct {
19 char* data;
20 size_t length;
21 } sstream_t;
23 void ssinit(sstream_t* stream);
24 void ssfree(sstream_t* stream);
26 /* Returns the number of bytes added to the stream. */
27 int ssvprintf(sstream_t* sstream, const char* format, va_list args);
28 int ssprintf(sstream_t* sstream, const char* format, ...);
30 #endif /* ERROR_HANDLING_STRING_STREAM_H */