Sha256: 6e74fe6768bf4b78ad8283bd7a72cefe129154c2fc0bf2c787aa176becb0d850

Contents?: true

Size: 390 Bytes

Versions: 9

Compression:

Stored size: 390 Bytes

Contents

//
// string_dup.h
//
// Copyright (c) 2014 Stephen Mathieson
// MIT licensed
//

#ifndef HAVE_STRINGDUP
#define HAVE_STRINGDUP

/**
 * Drop-in replacement for string_dup(3) from libc.
 *
 * Creates a copy of `str`.  Free when done.
 *
 * Returns a pointer to the newly allocated
 * copy of `str`, or `NULL` on failure.
 */

char *
string_dup(const char *str);

#endif /* HAVE_STRINGDUP */

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
mathematical-1.6.20 ext/mathematical/mtex2MML/src/string_dup.h
mathematical-1.6.18 ext/mathematical/mtex2MML/src/string_dup.h
mathematical-1.6.14 ext/mathematical/mtex2MML/src/string_dup.h
mathematical-1.6.13 ext/mathematical/mtex2MML/src/string_dup.h
mathematical-1.6.12 ext/mathematical/mtex2MML/src/string_dup.h
mathematical-1.6.11 ext/mathematical/mtex2MML/src/string_dup.h
mathematical-1.6.10 ext/mathematical/mtex2MML/src/string_dup.h
mathematical-1.6.9 ext/mathematical/mtex2MML/src/string_dup.h
mathematical-1.6.8 ext/mathematical/mtex2MML/src/string_dup.h