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. */
11 char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
12 char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
14 i = snprintf(bufs, 2, "%s", "111");
15 if (strcmp(bufs, "1"))
19 i = snprintf(bufd, 2, "%d", 111);
20 if (strcmp(bufd, "1"))