You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
527 B
C

//
// G A M E.O.N.E - LOW LEVEL LIB V1.0
// Copyright (C) 2001 LEVEL ONE ENTERTAINMENT,
// Licensed under the terms of LGPL.
//:---------------------------------------------------------------------------
//:Description
//
// SYS_TYPES INCLUDE FILE
//
#ifndef _SYS_STRING_H
#define _SYS_STRING_H
#include "../../llmem.h"
inline char * strdup(const char *str){
int len = 0;
while( str[len] != 0 ) len ++;
char * newstring = (char*)llmem_alloc(len+1);
strcpy(newstring,str);
return newstring;
}
#endif //_SYS_STRING_H