-
Notifications
You must be signed in to change notification settings - Fork 0
/
akbox_fn.c
28 lines (24 loc) · 992 Bytes
/
akbox_fn.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
/* akbox_fn.c - Application Black (K) Box hash function
* Copyright (c) 2006,2012 Sampo Kellomaki ([email protected]), All Rights Reserved.
* This is confidential unpublished proprietary source code of the author.
* NO WARRANTY, not even implied warranties. Contains trade secrets.
* Distribution prohibited unless authorized in writing. See file COPYING.
* Special grant: akbox.h may be used with zxid open source project under
* same licensing terms as zxid itself.
* $Id$
*
* 15.4.2006, created over Easter holiday --Sampo
* 16.8.2012, modified license grant to allow use with ZXID.org --Sampo
*/
#include <string.h>
/* This redefinition of sizeof(x) is deliberate and is meant to cause the
* AKBOX_FN macro, see akbox.h, to expand in this function such that it uses
* runtime string length rather than compile time sizeof. */
#define sizeof(x) (siz)
#include "akbox.h"
int akbox_fn(const char* fn)
{
int siz = strlen(fn)+1;
return AKBOX_FN(fn);
}
/* EOF - akbox_fn.c */