misc.h

Fri, 15 Mar 2013 20:11:18 +0200

author
Santeri Piippo <crimsondusk64@gmail.com>
date
Fri, 15 Mar 2013 20:11:18 +0200
changeset 0
c51cce84a9ac
child 13
3955ff2a7d72
permissions
-rw-r--r--

Initial commit

#ifndef __MISC_H__
#define __MISC_H__

#include "common.h"
#include "str.h"

inline str GetWord (str& zString, ulong ulIndex) {
	return (zString / " ")[ulIndex];
}

double GetWordFloat (str& s, int n);
long GetWordInt (str& s, int n);
vertex ParseVertex (str& s, int n);
void StripWhitespace (str& s);

#endif // __MISC_H__

mercurial