Vegastrike 0.5.1 rc1  1.0
Original sources for Vegastrike Evolved
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
pk3.cpp File Reference
#include "pk3.h"
#include <cstdlib>
#include <iostream>
#include "posh.h"

Go to the source code of this file.

Classes

struct  CPK3::TZipLocalHeader
 
struct  CPK3::TZipDirHeader
 
struct  CPK3::TZipDirFileHeader
 

Functions

int vsstrcmp (const char *lp, const char *str)
 

Variables

static size_t bogus_sizet
 

Function Documentation

int vsstrcmp ( const char *  lp,
const char *  str 
)

Definition at line 296 of file pk3.cpp.

References i.

Referenced by CPK3::ExtractFile(), and CPK3::FileExists().

297 {
298  unsigned int i, ok = 1;
299  unsigned int len = strlen( lp );
300  for (i = 0; ok && i < len; i++)
301  if (lp[i] != '/' && lp[i] != '\\' && lp[i] != str[i])
302  ok = 0;
303  return !ok;
304 }

Variable Documentation

size_t bogus_sizet
static

Definition at line 191 of file pk3.cpp.

Referenced by CPK3::CheckPK3().