hw8: Initial commit
This commit is contained in:
13
08_TestingCoverage/main.c
Normal file
13
08_TestingCoverage/main.c
Normal file
@@ -0,0 +1,13 @@
|
||||
#include <stdio.h>
|
||||
|
||||
#include "buf.h"
|
||||
|
||||
int main () {
|
||||
float *values = 0;
|
||||
for (size_t i = 0; i < 25; i++)
|
||||
buf_push(values, rand() / (float)RAND_MAX);
|
||||
for (size_t i = 0; i < buf_size(values); i++)
|
||||
printf("values[%zu] = %f\n", i, values[i]);
|
||||
buf_free(values);
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user