9base

revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log | Files | Refs | README | LICENSE

atol.c (83B)


      1 #include <u.h>
      2 #include <libc.h>
      3 
      4 long
      5 atol(char *s)
      6 {
      7 	return strtol(s, 0, 0);
      8 }
      9