| OLD | NEW |
| 1 /* | 1 /* Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 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 | 2 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 3 * found in the LICENSE file. */ |
| 5 */ | |
| 6 | 4 |
| 7 #include <stdlib.h> | 5 #include <stdlib.h> |
| 8 #include <stdio.h> | 6 #include <stdio.h> |
| 9 #include <string.h> | 7 #include <string.h> |
| 10 | 8 |
| 11 #include "error_handling/string_stream.h" | 9 #include "error_handling/string_stream.h" |
| 12 void ssinit(sstream_t* stream) { | 10 void ssinit(sstream_t* stream) { |
| 13 stream->data = NULL; | 11 stream->data = NULL; |
| 14 stream->length = 0; | 12 stream->length = 0; |
| 15 } | 13 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 42 } | 40 } |
| 43 | 41 |
| 44 int ssprintf(sstream_t* stream, const char* format, ...) { | 42 int ssprintf(sstream_t* stream, const char* format, ...) { |
| 45 int out; | 43 int out; |
| 46 va_list args; | 44 va_list args; |
| 47 va_start(args, format); | 45 va_start(args, format); |
| 48 out = ssvprintf(stream, format, args); | 46 out = ssvprintf(stream, format, args); |
| 49 va_end(args); | 47 va_end(args); |
| 50 | 48 |
| 51 return out; | 49 return out; |
| 52 } | 50 } |
| OLD | NEW |