# dkim_name_to_code()

[back to index]

SYNOPSIS |
    #include <dkim.h>
    const int dkim_name_to_code(
    	DKIM_NAMETABLE *tbl,
    	const char *name
    );
Translate a name text in C string into a mnemonic code.
DESCRIPTION |
Called When | `dkim_name_to_code()` can be called at any time.
ARGUMENTS |
Argument | Description
--- | ---
tbl | A name table to use for translation. One of values described in `DKIM_NAMETABLE`.
code | A name C string to translate.
RETURN VALUES | A mnemonic code matching the provided name, if found `-1`, if no maching is found
NOTES | None.

Copyright (c) 2005, 2007 Sendmail, Inc. and its suppliers. All rights reserved.
Copyright (c) 2009-2014, 2024 The Trusted Domain Project. All rights reserved.
By using this file, you agree to the terms and conditions set forth in the respective licenses.