Skip to content
Permalink
Browse files
Removed unused copyEnvironmentVariable function.
  • Loading branch information
icculus committed Apr 12, 2002
1 parent a7c8b22 commit bed1042f88bd3dd3f0b5c6cbbcb46ca40354a9a9
Showing with 0 additions and 16 deletions.
  1. +0 −16 platform/win32.c
@@ -142,22 +142,6 @@ char *__PHYSFS_platformGetUserName(void)
} /* __PHYSFS_platformGetUserName */


static char *copyEnvironmentVariable(const char *varname)
{
const char *envr = getenv(varname);
char *retval = NULL;

if (envr != NULL)
{
retval = malloc(strlen(envr) + 1);
if (retval != NULL)
strcpy(retval, envr);
} /* if */

return(retval);
} /* copyEnvironmentVariable */


char *__PHYSFS_platformGetUserDir(void)
{
char *userdir = NULL;

0 comments on commit bed1042

Please sign in to comment.