aboutsummaryrefslogtreecommitdiff
path: root/lib/libnet/args.h
blob: 1ede9a8c8dae3ca1f66d682b67279a93b87c09b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
/******************************************************************************
 * Copyright (c) 2004, 2008 IBM Corporation
 * All rights reserved.
 * This program and the accompanying materials
 * are made available under the terms of the BSD License
 * which accompanies this distribution, and is available at
 * http://www.opensource.org/licenses/bsd-license.php
 *
 * Contributors:
 *     IBM Corporation - initial implementation
 *****************************************************************************/

#ifndef _ARGS_H
#define _ARGS_H

const char *get_arg_ptr(const char *, unsigned int);
unsigned int get_args_count(const char *);
unsigned int get_arg_length(const char *);
char *argncpy(const char *, unsigned int, char *, unsigned int);
int strtoip(const char *, char[4]);
int strtoip_netmask(const char *, char[4], unsigned int *netmask);

#endif				/* _ARGS_H */