2 * Asterisk -- An open source telephony toolkit.
4 * Copyright (C) 2010, Digium, Inc.
6 * See http://www.asterisk.org for more information about
7 * the Asterisk project. Please do not directly contact
8 * any of the maintainers of this project for assistance;
9 * the project provides a web site, mailing lists and IRC
10 * channels for your use.
12 * This program is free software, distributed under the terms of
13 * the GNU General Public License Version 2. See the LICENSE file
14 * at the top of the source tree.
19 * \brief sip utils header file
26 * \brief converts ascii port to int representation.
28 * \arg pt[in] string that contains a port.
29 * \arg standard[in] port to return in case the port string input is NULL
30 * or if there is a parsing error.
32 * \return An integer port representation.
34 unsigned int port_str2int(const char *pt, unsigned int standard);
36 /*! \brief Locate closing quote in a string, skipping escaped quotes.
37 * optionally with a limit on the search.
38 * start must be past the first quote.
40 const char *find_closing_quote(const char *start, const char *lim);