LCOV - code coverage report | |||||||||||||||||||||||
![]() | |||||||||||||||||||||||
|
|||||||||||||||||||||||
![]() |
1 : #include <stdio.h> 2 : #include "prenv.h" 3 : 4 1 : int main(int argc, char* argv[]) 5 : { 6 1 : if (argc != 2) 7 0 : return 1; 8 : 9 1 : const char* value = PR_GetEnv("WRITE_ARGUMENT_FILE"); 10 : 11 1 : if (!value) 12 0 : return 2; 13 : 14 1 : FILE* outfile = fopen(value, "w"); 15 1 : if (!outfile) 16 0 : return 3; 17 : 18 : // We only need to write out the first argument (no newline). 19 1 : fputs(argv[argc -1], outfile); 20 : 21 1 : fclose(outfile); 22 : 23 1 : return 0; 24 : } |
![]() |
Generated by: LCOV version 1.7 |