no bug - Bumping Firefox l10n changesets r=release a=l10n-bump DONTBUILD CLOSED TREE
[gecko.git] / uriloader / exthandler / tests / WriteArgument.cpp
blob603965150e323b8a92e638cd2374d4538e317152
1 #include <stdio.h>
2 #include "prenv.h"
4 int main(int argc, char* argv[]) {
5 if (argc != 2) return 1;
7 const char* value = PR_GetEnv("WRITE_ARGUMENT_FILE");
9 if (!value) return 2;
11 FILE* outfile = fopen(value, "w");
12 if (!outfile) return 3;
14 // We only need to write out the first argument (no newline).
15 fputs(argv[argc - 1], outfile);
17 fclose(outfile);
19 return 0;