parse_bytes.h (55682) | parse_bytes.h (90926) |
---|---|
1/* | 1/* |
2 * Copyright (c) 1999 Kungliga Tekniska H�gskolan | 2 * Copyright (c) 1999 - 2001 Kungliga Tekniska H�gskolan |
3 * (Royal Institute of Technology, Stockholm, Sweden). 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 10 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 | 3 * (Royal Institute of Technology, Stockholm, Sweden). 4 * All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: 9 * 10 * 1. Redistributions of source code must retain the above copyright --- 15 unchanged lines hidden (view full) --- 26 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 27 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 28 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 29 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 30 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 31 * SUCH DAMAGE. 32 */ 33 |
34/* $Id: parse_bytes.h,v 1.2 1999/12/02 16:58:51 joda Exp $ */ | 34/* $Id: parse_bytes.h,v 1.3 2001/09/04 09:56:00 assar Exp $ */ |
35 36#ifndef __PARSE_BYTES_H__ 37#define __PARSE_BYTES_H__ 38 39int 40parse_bytes (const char *s, const char *def_unit); 41 | 35 36#ifndef __PARSE_BYTES_H__ 37#define __PARSE_BYTES_H__ 38 39int 40parse_bytes (const char *s, const char *def_unit); 41 |
42size_t | 42int |
43unparse_bytes (int t, char *s, size_t len); 44 | 43unparse_bytes (int t, char *s, size_t len); 44 |
45size_t | 45int |
46unparse_bytes_short (int t, char *s, size_t len); 47 48#endif /* __PARSE_BYTES_H__ */ | 46unparse_bytes_short (int t, char *s, size_t len); 47 48#endif /* __PARSE_BYTES_H__ */ |