mirror of
https://github.com/arcan1s/moldyn.git
synced 2025-07-21 17:49:59 +00:00
Added lib 'coords.c'
This commit is contained in:
38
stat_new/test/test_2.c
Normal file
38
stat_new/test/test_2.c
Normal file
@ -0,0 +1,38 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
int test_func(int **test)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
for (i=0; i<3; i++)
|
||||
for (j=0; j<3; j++)
|
||||
test[i][j] = 3;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
int i, j;
|
||||
int test[3][3];
|
||||
|
||||
for (i=0; i<3; i++)
|
||||
for (j=0; j<3; j++)
|
||||
test[i][j] = 0;
|
||||
for (i=0; i<3; i++)
|
||||
for (j=0; j<3; j++)
|
||||
printf ("%i\n", test[i][j]);
|
||||
|
||||
printf ("Done\n");
|
||||
|
||||
test_func((int **) test);
|
||||
|
||||
for (i=0; i<3; i++)
|
||||
for (j=0; j<3; j++)
|
||||
printf ("%i\n", test[i][j]);
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user