view modules/xstrndup @ 40244:c39a0edd90d7

fts: minor simplification * lib/fts.c (fts_safe_changedir): Remove redundant assignment.
author Paul Eggert <eggert@cs.ucla.edu>
date Sun, 17 Mar 2019 12:39:50 -0700
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