Browse Source

+ add aiString::C_Str

git-svn-id: https://assimp.svn.sourceforge.net/svnroot/assimp/trunk@1110 67173fc5-114c-0410-ac8e-9d2fd5bffc1f
aramis_acg 13 years ago
parent
commit
20495de804
1 changed files with 5 additions and 0 deletions
  1. 5 0
      include/aiTypes.h

+ 5 - 0
include/aiTypes.h

@@ -337,6 +337,11 @@ struct aiString
 #endif
 	}
 
+	/** Returns a pointer to the underlying zero-terminated array of characters */
+	const char* C_Str() const {
+		return data;
+	}
+
 #endif // !__cplusplus
 
 	/** Binary length of the string excluding the terminal 0. This is NOT the