13d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes/* $OpenBSD: wcstoll.c,v 1.2 2005/08/08 08:05:35 espie Exp $ */ 23d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes/* $NetBSD: wcstoll.c,v 1.1 2003/03/11 09:21:23 tshiozak Exp $ */ 33d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes 43d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes#include <ctype.h> 53d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes#include <errno.h> 63d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes#include <limits.h> 73d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes#include <stdlib.h> 83d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes#include <wchar.h> 93d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes#include <wctype.h> 103d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes 113d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes#include "wctoint.h" 123d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes 133d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes#define FUNCNAME wcstoll 143d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughestypedef long long int int_type; 153d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes#define MIN_VALUE LLONG_MIN 163d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes#define MAX_VALUE LLONG_MAX 173d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes 183d7a0d9b08ecab054b2dff8332507644de3690b0Elliott Hughes#include "_wcstol.h" 19