lib: add strtol into utility library

The utility library is for functions which are shared in commands,
but that does not belong to libproc-ng.  The first function is a
wrapper for strtol that performs error checking, and exists if such
happen.

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola
2011-10-18 20:54:30 +02:00
parent 130895b02e
commit b260b11a3b
6 changed files with 50 additions and 0 deletions

7
lib/Makefile.am Normal file
View File

@@ -0,0 +1,7 @@
AM_CPPFLAGS = -include $(top_builddir)/config.h -I$(top_srcdir)/include
AM_CPPFLAGS += -DTEST_PROGRAM
noinst_PROGRAMS = test_strutils
test_strutils_SOURCES = strutils.c