C language to implement hash/DJB2 algorithm (with complete source code)

Complete source code to implement hash/DJB2 algorithm (definition, implementation, main function test)

#include <assert.h>
#include <inttypes.h>
#include <stdio.h>

/**
 * @brief DJB2 algorithm implementation
 *
 * @param s NULL terminated string to hash
 * @return 64-bit hash result
 */
uint64_t djb2

Guess you like

Origin blog.csdn.net/it_xiangqiang/article/details/114027345