diff options
author | Matthew Sotoudeh <matthewsot@outlook.com> | 2020-11-10 14:06:35 -0800 |
---|---|---|
committer | Matthew Sotoudeh <matthewsot@outlook.com> | 2020-11-10 14:06:35 -0800 |
commit | 904094281b062aff3445ca41fec57e4cfd0f563d (patch) | |
tree | ed49271ab1ff8448a433921533159f6a8e450c8b /examples/program_analysis/paper_demos/api1.before.txt | |
parent | db99b3af36fa4687c734e1c74d83157d2f10c9ed (diff) |
Initial code release
Diffstat (limited to 'examples/program_analysis/paper_demos/api1.before.txt')
-rw-r--r-- | examples/program_analysis/paper_demos/api1.before.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/program_analysis/paper_demos/api1.before.txt b/examples/program_analysis/paper_demos/api1.before.txt new file mode 100644 index 0000000..0703da3 --- /dev/null +++ b/examples/program_analysis/paper_demos/api1.before.txt @@ -0,0 +1,14 @@ +#include <stdio.h> +#include "cam.h" + +#define BUFFER_SIZE (1024 * 1024) +char buffer[BUFFER_SIZE]; + +void try_record_video() { + int result = cam_record_video(buffer, BUFFER_SIZE, RES_AUTO); + if (result == -1) { + printf("Could not record video.\n"); + } else { + printf("Recording video worked!\n"); + } +} |