Sha256: 26ba8d07ae5e2ab9a82bf751d582db0cfb29b3bf10b5f2d866eba3a917a91518

Contents?: true

Size: 305 Bytes

Versions: 2

Compression:

Stored size: 305 Bytes

Contents

#include <ogg/os_types.h>
#include <sys/types.h>
#include <string.h>
#include <stdlib.h>

char *strdup(const char *inStr)
{
	char *outStr = NULL;
	
	if (inStr == NULL) {
		return NULL;
	}
	
	outStr = _ogg_malloc(strlen(inStr) + 1);
	
	if (outStr != NULL) {
		strcpy(outStr, inStr);
	}
	
	return outStr;
}

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
gosu-0.7.16 dependencies/libogg/macos/compat/strdup.c
gosu-0.7.16 dependencies/libvorbis/macos/compat/strdup.c