summaryrefslogtreecommitdiff
path: root/deps/gyp/test/rules-use-built-dependencies/src/main.cc
blob: 937d2845992205b32f3c13d756297ddce935ec4a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Copyright (c) 2013 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>

int main(int argc, char *argv[]) {
    if (argc < 2) {
        return 2;
    }
    FILE* file;
    file = fopen(argv[1], "wb");
    const char output[] = "output";
    fwrite(output, 1, sizeof(output) - 1, file);
    fclose(file);
    return 0;
}