hw8: Initial commit

This commit is contained in:
2020-11-04 16:49:27 +03:00
parent ed17584264
commit a0d68131c9
6 changed files with 363 additions and 0 deletions

13
08_TestingCoverage/main.c Normal file
View 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;
}