*** empty log message ***

git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@548 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2006-11-09 20:09:16 +00:00
parent 3a535b0b5b
commit c7469a7873
90 changed files with 2582 additions and 2074 deletions
+10
View File
@@ -12,6 +12,16 @@ char *path(char *s)
return s;
};
char *parentdir(char *directory)
{
char *p = strrchr(directory, '/');
if(!p) p = directory;
size_t len = p-directory+1;
char *parent = new char[len];
s_strncpy(parent, directory, len);
return parent;
};
char *loadfile(char *fn, int *size)
{
FILE *f = fopen(fn, "rb");