xt_strisint(3)

NAME
xt_strisint() - Return true if string represents an integer value

LIBRARY
#include <xtend/string.h>
-lxtend

SYNOPSIS
int     xt_strisint(const char *string, int base)

ARGUMENTS
string: The string to be tested
base:   The expected base of the integer (usually 8, 10, or 16)

DESCRIPTION
Determine whether a string is a valid integer by attempting to convert it using strtoll().

RETURN VALUES
Non-zero value if the string represents an integer, zero otherwise

SEE ALSO
strtoll(3)