Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields | Globals

l_utils.c File Reference

#include "qbsp.h"
#include "l_mem.h"

Include dependency graph for l_utils.c:

Include dependency graph

Go to the source code of this file.

Functions

void AppendPathSeperator (char *path, int length)
void ConvertPath (char *path)


Function Documentation

void AppendPathSeperator char *  path,
int  length
 

Definition at line 94 of file l_utils.c.

References length(), and strlen().

Referenced by AASOuputFile(), CreateAASFilesForAllBSPFiles(), FindQuakeFilesWithPakFilter(), and main().

00095 {
00096     int pathlen = strlen(path);
00097 
00098     if (strlen(path) && length-pathlen > 1 && path[pathlen-1] != '/' && path[pathlen-1] != '\\')
00099     {
00100         path[pathlen] = PATHSEPERATOR_CHAR;
00101         path[pathlen+1] = '\0';
00102     } //end if
00103 } //end of the function AppenPathSeperator

Here is the call graph for this function:

void ConvertPath char *  path  ) 
 

Definition at line 80 of file l_utils.c.

Referenced by FindQuakeFiles(), FindQuakeFilesInPak(), and FindQuakeFilesInZip().

00081 {
00082     while(*path)
00083     {
00084         if (*path == '/' || *path == '\\') *path = PATHSEPERATOR_CHAR;
00085         path++;
00086     } //end while
00087 } //end of the function ConvertPath


Generated on Thu Aug 25 12:54:43 2005 for Quake III Arena by  doxygen 1.3.9.1