mirror of
https://github.com/0intro/wmii
synced 2024-11-26 07:39:37 +03:00
15 lines
240 B
C
15 lines
240 B
C
/* Copyright ©2008-2010 Kris Maglione <maglione.k at Gmail>
|
|
* See LICENSE file for license details.
|
|
*/
|
|
#include <stuff/util.h>
|
|
|
|
bool
|
|
getint(const char *s, int *ret) {
|
|
long l;
|
|
bool res;
|
|
|
|
res = getlong(s, &l);
|
|
*ret = l;
|
|
return res;
|
|
}
|