mirror of
https://github.com/arcan1s/moldyn.git
synced 2025-07-23 02:29:58 +00:00
Added lib 'coords.c'
This commit is contained in:
30
stat_new/test/test_0.c
Normal file
30
stat_new/test/test_0.c
Normal file
@ -0,0 +1,30 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
|
||||
int test_func(float* test)
|
||||
{
|
||||
int i, j;
|
||||
|
||||
*test = 3.0;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
int main (int argc, char *argv[])
|
||||
{
|
||||
int i, j;
|
||||
float test;
|
||||
|
||||
test = 0.0;
|
||||
printf ("%3.1f\n", test);
|
||||
|
||||
printf ("Done\n");
|
||||
|
||||
test_func(&test);
|
||||
|
||||
printf ("%3.1f\n", test);
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user