mirror of
https://github.com/0intro/wmii
synced 2024-12-16 16:42:38 +03:00
22 lines
466 B
C
22 lines
466 B
C
|
/*
|
||
|
* (C)opyright MMIV-MMV Anselm R. Garbe <garbeam at gmail dot com>
|
||
|
* See LICENSE file for license details.
|
||
|
*/
|
||
|
|
||
|
#include <stdio.h>
|
||
|
|
||
|
#include "cext.h"
|
||
|
#include "blitz.h"
|
||
|
|
||
|
long long
|
||
|
_strtonum(const char *numstr, long long minval, long long maxval)
|
||
|
{
|
||
|
const char *errstr;
|
||
|
long long ret = __strtonum(numstr, minval, maxval, &errstr);
|
||
|
if (errstr)
|
||
|
fprintf(stderr,
|
||
|
"liblitz: cannot convert '%s' into integer: %s\n",
|
||
|
numstr, errstr);
|
||
|
return ret;
|
||
|
}
|