Sha256: 477be964654cfeb1b171062d7e32ecbb17cc8dab70889bea206a38298687aedb

Contents?: true

Size: 448 Bytes

Versions: 5

Compression:

Stored size: 448 Bytes

Contents

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

#ifndef _WIN32
#ifndef IS_TRAVISCI
#ifndef HAVE_STRDUP
#define HAVE_STRDUP

/**
 * Drop-in replacement for strdup(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 *
strdup(const char *str);

#endif /* HAVE_STRDUP */
#else
#define strdup _strdup
#endif
#endif

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
mathematical-1.6.7 ext/mathematical/mtex2MML/deps/strdup/strdup.h
mathematical-1.6.6 ext/mathematical/mtex2MML/deps/strdup/strdup.h
mathematical-1.6.5 ext/mathematical/mtex2MML/deps/strdup/strdup.h
mathematical-1.6.4 ext/mathematical/mtex2MML/deps/strdup/strdup.h
mathematical-1.6.0 ext/mathematical/mtex2MML/deps/strdup/strdup.h