ucx/utils.h

changeset 225
a1a068c2c4ef
parent 224
f9ba63fc6a80
child 244
98dc2d3a9b1d
equal deleted inserted replaced
224:f9ba63fc6a80 225:a1a068c2c4ef
1 /* 1 /*
2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER. 2 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.
3 * 3 *
4 * Copyright 2015 Olaf Wintermann. All rights reserved. 4 * Copyright 2016 Olaf Wintermann. All rights reserved.
5 * 5 *
6 * Redistribution and use in source and binary forms, with or without 6 * Redistribution and use in source and binary forms, with or without
7 * modification, are permitted provided that the following conditions are met: 7 * modification, are permitted provided that the following conditions are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
260 /** Shortcut for ucx_asprintf() with default allocator. */ 260 /** Shortcut for ucx_asprintf() with default allocator. */
261 #define ucx_sprintf(...) \ 261 #define ucx_sprintf(...) \
262 ucx_asprintf(ucx_default_allocator(), __VA_ARGS__) 262 ucx_asprintf(ucx_default_allocator(), __VA_ARGS__)
263 263
264 /** 264 /**
265 * A <code>printf()</code> like function which writes the output to an 265 * A <code>printf()</code> like function which writes the output to a
266 * UcxBuffer. 266 * UcxBuffer.
267 * 267 *
268 * @param buffer the buffer the data is written to 268 * @param buffer the buffer the data is written to
269 * @param ... format string and additional arguments 269 * @param ... format string and additional arguments
270 * @return the total number of bytes written 270 * @return the total number of bytes written

mercurial