00001 /*- 00002 * © Portions copyright (c) 2005 Nokia Corporation. All rights reserved. 00003 * Copyright (c) 2001 Mike Barcroft <[email protected]> 00004 * All rights reserved. 00005 * 00006 * Redistribution and use in source and binary forms, with or without 00007 * modification, are permitted provided that the following conditions 00008 * are met: 00009 * 1. Redistributions of source code must retain the above copyright 00010 * notice, this list of conditions and the following disclaimer. 00011 * 2. Redistributions in binary form must reproduce the above copyright 00012 * notice, this list of conditions and the following disclaimer in the 00013 * documentation and/or other materials provided with the distribution. 00014 * 00015 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND 00016 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00017 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00018 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 00019 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 00020 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 00021 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 00022 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 00023 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 00024 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 00025 * SUCH DAMAGE. 00026 * 00027 * $FreeBSD: src/include/inttypes.h,v 1.8 2002/09/22 08:06:45 tjr Exp $ 00028 * © Portions copyright (c) 2007 Symbian Software Ltd. All rights reserved. 00029 */ 00030 00031 #ifndef _INTTYPES_H_ 00032 #define _INTTYPES_H_ 00033 00034 #include <machine/_inttypes.h> 00035 #include <sys/stdint.h> 00036 00037 #include <_ansi.h> 00038 typedef struct { 00039 intmax_t quot; /* Quotient. */ 00040 intmax_t rem; /* Remainder. */ 00041 } imaxdiv_t; 00042 00043 __BEGIN_DECLS 00044 IMPORT_C 00045 intmax_t strtoimax(const char * __restrict, char ** __restrict, int); 00046 00047 IMPORT_C 00048 uintmax_t strtoumax(const char * __restrict, char ** __restrict, int); 00049 IMPORT_C intmax_t wcstoimax(const __wchar_t * __restrict, 00050 __wchar_t ** __restrict, int); 00051 IMPORT_C uintmax_t wcstoumax(const __wchar_t * __restrict, 00052 __wchar_t ** __restrict, int); 00053 __END_DECLS 00054 00055 #endif /* !_INTTYPES_H_ */