1 /*
2 * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
3 * All rights reserved.
4 *
5 * This source code is licensed under both the BSD-style license (found in the
6 * LICENSE file in the root directory of this source tree) and the GPLv2 (found
7 * in the COPYING file in the root directory of this source tree).
8 * You may select, at your option, one of the above-listed licenses.
9 */
10
11
12
13 #include <stddef.h> /* size_t */
14 #include <string.h> /* strlen */
15
16 /* symbol definition */
17 extern unsigned XXH32(const void* src, size_t srcSize, unsigned seed);
18
main(int argc,const char ** argv)19 int main(int argc, const char** argv)
20 {
21 const char* exename = argv[0];
22 unsigned result = XXH32(exename, strlen(exename), argc);
23 return !result;
24 }
25