xref: /haiku/headers/posix/inttypes.h (revision 1e36cfc2721ef13a187c6f7354dc9cbc485e89d3)
1 #ifndef _INTTYPES_H_
2 #define _INTTYPES_H_
3 /*
4 ** Distributed under the terms of the OpenBeOS License.
5 */
6 
7 
8 #include <stdint.h>
9 
10 
11 typedef struct {
12 	intmax_t	quot;	/* quotient */
13 	intmax_t	rem;	/* remainder */
14 } imaxdiv_t;
15 
16 
17 #ifdef __cplusplus
18 extern "C" {
19 #endif
20 
21 extern intmax_t		imaxabs(intmax_t num);
22 extern imaxdiv_t	imaxdiv(intmax_t numer, intmax_t denom);
23 
24 extern intmax_t		strtoimax(const char *string, char **_end, int base);
25 extern uintmax_t	strtoumax(const char *string, char **_end, int base);
26 //extern intmax_t		wcstoimax(const __wchar_t *, __wchar_t **, int);
27 //extern uintmax_t	wcstoumax(const __wchar_t *, __wchar_t **, int);
28 
29 #ifdef __cplusplus
30 }
31 #endif
32 
33 #endif	/* _INTTYPES_H_ */
34