1 /* Copyright (c) 2010-2018. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
10 int my_vsnprintf(char *buf, const char *tmpl, ...)
15 i = vsnprintf(buf, 2, tmpl, args);
22 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
23 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
25 i = my_vsnprintf(bufs, "%s", "111");
26 if (strcmp(bufs, "1"))
30 i = my_vsnprintf(bufd, "%d", 111);
31 if (strcmp(bufd, "1"))