samples: separate code blocks, remove extra empty lines at the end of files

This commit is contained in:
XhmikosR 2012-09-17 14:17:24 +03:00 committed by PKEuS
parent d3e990b1e5
commit 458b8ce2cc
17 changed files with 2 additions and 18 deletions

View File

@ -3,9 +3,9 @@ int foo(int *p)
int a = p;
return a + 4;
}
int main()
{
int i[10];
foo(i);
}

View File

@ -2,10 +2,9 @@ int* foo(int *p)
{
return p + 4;
}
int main()
{
int i[10];
foo(i);
}

View File

@ -6,4 +6,3 @@ int main()
a[2] = 0;
return a[0];
}

View File

@ -6,4 +6,3 @@ int main()
a[2] = 0;
return a[0];
}

View File

@ -9,4 +9,3 @@ int main()
int *c;
foo(&c);
}

View File

@ -10,4 +10,3 @@ int main()
int *c = &b;
foo(&c);
}

View File

@ -6,4 +6,3 @@ int main()
a[i] = 0;
return a[0];
}

View File

@ -6,4 +6,3 @@ int main()
a[i] = 0;
return a[0];
}

View File

@ -12,4 +12,3 @@ int main()
}
}
}

View File

@ -14,4 +14,3 @@ int main()
}
}
}

View File

@ -8,4 +8,3 @@ int main()
free(a);
return result;
}

View File

@ -4,4 +4,3 @@ int main()
char str[5];
snprintf(str, 10, "%s", "abc");
}

View File

@ -4,4 +4,3 @@ int main()
char str[10];
snprintf(str, 10, "%s", "abc");
}

View File

@ -7,4 +7,3 @@ int main()
return 0;
}

View File

@ -7,4 +7,3 @@ int main()
fclose(a);
return 0;
}

View File

@ -3,4 +3,3 @@ int main()
#ifndef A
}
#endif

View File

@ -3,4 +3,3 @@ int main()
#ifndef A
#endif
}