--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/misc.h Fri Mar 15 20:11:18 2013 +0200 @@ -0,0 +1,16 @@ +#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__ \ No newline at end of file