NAME
KS_exec_diff —
execution wrappers for common
utilities
SYNOPSIS
#include
<libks/exec.h>
int
KS_exec_diff(const
char *path, const char
*src, size_t
srclen, const char
*dst, size_t
dstlen);
DESCRIPTION
The exec API provides execution wrappers for common utilities.
The
KS_exec_diff()
function outputs any difference between src and
dst using
diff(1). Favoring a unified diff using
path as the template for the labels.
RETURN VALUES
KS_exec_diff() returns zero if the
contents of src and dst are
equal. Otherwise, 1 is returned. On failure, -1 is returned and
errno is set accordingly.
AUTHORS
Anton Lindqvist <anton@basename.se>