view modules/xstrndup @ 14271:b4cc3c41ca79

libposix: Add _HEADERS primaries to posix modules. Modify gnulib-tool to strip them from generated Makefile.am-s where they are not needed. Also, replace M4 macro prefixes when requested. Finally, omit calls to error() for libposix.
author Bruce Korb <bkorb@gnu.org>
date Sat, 05 Feb 2011 08:22:48 -0800
parents 42b53a22aee5
children
line wrap: on
line source

Description:
Duplicate a bounded initial segment of a string, with out-of-memory checking.

Files:
lib/xstrndup.h
lib/xstrndup.c
m4/xstrndup.m4

Depends-on:
strndup
xalloc

configure.ac:
gl_XSTRNDUP

Makefile.am:
lib_SOURCES += xstrndup.h xstrndup.c

Include:
"xstrndup.h"

License:
GPL

Maintainer:
Simon Josefsson