2 * Copyright (c) 2016-present, Yann Collet, Facebook, Inc.
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.
13 #include <stddef.h> /* size_t */
14 #include <string.h> /* strlen */
16 /* symbol definition */
17 extern unsigned XXH32(const void* src, size_t srcSize, unsigned seed);
19 int main(int argc, const char** argv)
21 const char* exename = argv[0];
22 unsigned result = XXH32(exename, strlen(exename), argc);