// // 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