wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

getint.c (240B)


      1 /* Copyright ©2008-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include <stuff/util.h>
      5 
      6 bool
      7 getint(const char *s, int *ret) {
      8 	long l;
      9 	bool res;
     10 
     11 	res = getlong(s, &l);
     12 	*ret = l;
     13 	return res;
     14 }