28 lines
770 B
C
28 lines
770 B
C
/// @file
|
|
/// @brief Task1: tests (support for C11 standard)
|
|
|
|
#include <assert.h> // assert
|
|
#include <stdio.h> // FILE
|
|
#include <stdlib.h> // EXIT_FAILURE|EXIT_SUCCESS
|
|
|
|
#include "iue-io/ccsv.h" // https://sgit.iue.tuwien.ac.at/360050/modules
|
|
|
|
int main(void) {
|
|
|
|
FILE* stream = fopen("info_c.txt", "w");
|
|
if (stream == NULL)
|
|
return EXIT_FAILURE;
|
|
|
|
fprintf(stream, "This compilation unit was compiled\n");
|
|
fprintf(stream, " - on %s at %s\n", __DATE__, __TIME__);
|
|
fprintf(stream, " - using the C language standard %li\n", __STDC_VERSION__);
|
|
fprintf(stream, " - the main-function was present in this file: %s\n", __FILE__);
|
|
fclose(stream);
|
|
|
|
assert(__STDC_VERSION__ >= 201112L);
|
|
|
|
printf("task1.test.c: all asserts passed\n");
|
|
|
|
return EXIT_SUCCESS;
|
|
}
|