OLD | NEW |
1 /* Copyright (c) 2011 Google Inc. All rights reserved. | 1 /* Copyright (c) 2012 Google Inc. All rights reserved. |
2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
4 */ | 4 */ |
5 | 5 |
6 #include <stdio.h> | 6 #include <stdio.h> |
7 | 7 |
8 #include "b.h" | 8 #include "b.h" |
9 | 9 |
10 int main(int argc, char** argv) { | 10 int main(int argc, char** argv) { |
| 11 FILE* f; |
11 if (argc < 2) | 12 if (argc < 2) |
12 return 1; | 13 return 1; |
13 FILE* f = fopen(argv[1], "wt"); | 14 f = fopen(argv[1], "wt"); |
14 fprintf(f, "#define VALUE %d\n", funcA()); | 15 fprintf(f, "#define VALUE %d\n", funcA()); |
15 fclose(f); | 16 fclose(f); |
16 return 0; | 17 return 0; |
17 } | 18 } |
OLD | NEW |