blob: 3f5960f8915e689aef8ac7e6557fe23dddcb4dc6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
/* Copyright (c) 2014 Google Inc. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#include <stdio.h>
extern const char* getString(void);
int main(int argc, char* argv[])
{
if (argc < 2) return 2;
FILE* f = fopen(argv[1], "w");
if (f == NULL) return 1;
fprintf(f, "%s", getString());
fclose(f);
return 0;
}
|