2002-10-26 04:35:08 +04:00
|
|
|
#ifndef _INTTYPES_H_
|
|
|
|
#define _INTTYPES_H_
|
|
|
|
/*
|
|
|
|
** Distributed under the terms of the OpenBeOS License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
2003-04-19 21:35:55 +04:00
|
|
|
#include <stdint.h>
|
2002-10-26 04:35:08 +04:00
|
|
|
|
|
|
|
|
2003-04-19 21:35:55 +04:00
|
|
|
typedef struct {
|
|
|
|
intmax_t quot; /* quotient */
|
|
|
|
intmax_t rem; /* remainder */
|
|
|
|
} imaxdiv_t;
|
|
|
|
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
extern intmax_t imaxabs(intmax_t num);
|
|
|
|
extern imaxdiv_t imaxdiv(intmax_t numer, intmax_t denom);
|
|
|
|
|
2004-09-02 05:03:51 +04:00
|
|
|
extern intmax_t strtoimax(const char *string, char **_end, int base);
|
|
|
|
extern uintmax_t strtoumax(const char *string, char **_end, int base);
|
2003-04-19 21:35:55 +04:00
|
|
|
//extern intmax_t wcstoimax(const __wchar_t *, __wchar_t **, int);
|
|
|
|
//extern uintmax_t wcstoumax(const __wchar_t *, __wchar_t **, int);
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
2002-10-26 04:35:08 +04:00
|
|
|
|
|
|
|
#endif /* _INTTYPES_H_ */
|