/// strdup() not available on all platforms
static char * my_strdup(const char * source) {
+ if (source == NULL) {
+ return NULL;
+ }
+
char * result = malloc(strlen(source) + 1);
if (result) {
/// strdup() not available on all platforms
static char * my_strdup(const char * source) {
+ if (source == NULL) {
+ return NULL;
+ }
+
char * result = malloc(strlen(source) + 1);
if (result) {
/// strdup() not available on all platforms
static char * my_strdup(const char * source) {
+ if (source == NULL) {
+ return NULL;
+ }
+
char * result = malloc(strlen(source) + 1);
if (result) {
/// strdup() not available on all platforms
static char * my_strdup(const char * source) {
+ if (source == NULL) {
+ return NULL;
+ }
+
char * result = malloc(strlen(source) + 1);
if (result) {
/// strdup() not available on all platforms
static char * my_strdup(const char * source) {
+ if (source == NULL) {
+ return NULL;
+ }
+
char * result = malloc(strlen(source) + 1);
if (result) {
/// strdup() not available on all platforms
static char * my_strdup(const char * source) {
+ if (source == NULL) {
+ return NULL;
+ }
+
char * result = malloc(strlen(source) + 1);
if (result) {
/// strdup() not available on all platforms
static char * my_strdup(const char * source) {
+ if (source == NULL) {
+ return NULL;
+ }
+
char * result = malloc(strlen(source) + 1);
if (result) {
/// strndup not available on all platforms
static char * my_strndup(const char * source, size_t n) {
+ if (source == NULL) {
+ return NULL;
+ }
+
size_t len = 0;
char * result;
const char * test = source;
/// strndup not available on all platforms
static char * my_strndup(const char * source, size_t n) {
+ if (source == NULL) {
+ return NULL;
+ }
+
size_t len = 0;
char * result;
const char * test = source;
/// strdup() not available on all platforms
static char * my_strdup(const char * source) {
+ if (source == NULL) {
+ return NULL;
+ }
+
char * result = malloc(strlen(source) + 1);
if (result) {
/// strdup() not available on all platforms
static char * my_strdup(const char * source) {
+ if (source == NULL) {
+ return NULL;
+ }
+
char * result = malloc(strlen(source) + 1);
if (result) {