Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Indent the rest of the code (examples, buildtools, doc...) except for examples/SMPI...
[simgrid.git] / buildtools / Cmake / test_prog / prog_snprintf.c
index a33c846..60f2403 100644 (file)
@@ -8,14 +8,18 @@
 
 int main(void)
 {
-    char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
-    char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
-    int i;
-    i = snprintf (bufs, 2, "%s", "111");
-    if (strcmp (bufs, "1")) exit (1);
-    if (i != 3) exit (1);
-    i = snprintf (bufd, 2, "%d", 111);
-    if (strcmp (bufd, "1")) exit (1);
-    if (i != 3) exit (1);
-    exit(0);
+  char bufs[5] = { 'x', 'x', 'x', '\0', '\0' };
+  char bufd[5] = { 'x', 'x', 'x', '\0', '\0' };
+  int i;
+  i = snprintf(bufs, 2, "%s", "111");
+  if (strcmp(bufs, "1"))
+    exit(1);
+  if (i != 3)
+    exit(1);
+  i = snprintf(bufd, 2, "%d", 111);
+  if (strcmp(bufd, "1"))
+    exit(1);
+  if (i != 3)
+    exit(1);
+  exit(0);
 }