summaryrefslogtreecommitdiff
path: root/include/nspsl.h
blob: 02bcbb890fe029fca9a3fe9c7d522d5894cb9885 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/*
 * Copyright 2016 Vincent Sanders <vince@netsurf-browser.org>
 *
 * This file is part of libnspsl
 *
 * Licensed under the MIT License,
 *                http://www.opensource.org/licenses/mit-license.php
 */

/**
 * get the public suffix of a hostname
 *
 * \param hostname The name to check
 * \return pointer to the public suffix of the hostname if it was valid else
 * NULL.
 */
const char *nspsl_getpublicsuffix(const char *hostname);