1 /* Copyright (c) 2010. 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")) exit (1);
17 i = snprintf (bufd, 2, "%d", 111);
18 if (strcmp (bufd, "1")) exit (1);