BlinkenArea - GitList
Repositories
Blog
Wiki
libetherpix
Code
Commits
Branches
Tags
Search
Tree:
0cb7bcf
Branches
Tags
master
libetherpix
include
intern
parse.h
v1.0.1
Stefan Schuermans
commited
0cb7bcf
at 2011-09-11 17:14:09
parse.h
Blame
History
Raw
/* * FlexiPix library * !version: 1.0.1! !date: 2010-08-19! * * Copyright 2010 Stefan Schuermans <stefan schuermans info> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, version 3 of the License. * * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see <http://www.gnu.org/licenses/>. */ #ifndef FLP_PARSE_H #define FLP_PARSE_H #include <intern/net.h> /** * \brief parse two comma-separated numbers * * \param[in] text text to parse * \param[out] no1 first number parsed from text * \param[out] no2 second number parsed from text * \param[out] end location in text where parsing ended * \return 0 in case of success, -1 in case of error */ int flp_parse_two_nos(char *text, unsigned int *no1, unsigned int *no2, char **end); /** * \brief parse an address * * \param[in] test test to parse * \param[out] addr address parsed from text * \return 0 in case of success, -1 in case of error */ int flp_parse_addr(char *text, struct sockaddr_in *addr); #endif /* #ifndef FLP_PARSE_H */