Initial source commit
This commit is contained in:
commit
f1384c11ee
335 changed files with 52715 additions and 0 deletions
39
minorGems/io/file/testPath.cpp
Normal file
39
minorGems/io/file/testPath.cpp
Normal file
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* Modification History
|
||||
*
|
||||
* 2002-August-1 Jason Rohrer
|
||||
* Created.
|
||||
*/
|
||||
|
||||
|
||||
#include "Path.h"
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
|
||||
|
||||
int main() {
|
||||
|
||||
char *pathString = "/test/this/thing";
|
||||
|
||||
printf( "using path string = %s\n", pathString );
|
||||
|
||||
printf( "Constructing path.\n" );
|
||||
Path *path = new Path( pathString );
|
||||
|
||||
|
||||
printf( "Extracting path string.\n" );
|
||||
char *extractedPathString = path->getPathStringTerminated();
|
||||
|
||||
printf( "extracted path string = %s\n", extractedPathString );
|
||||
|
||||
|
||||
|
||||
delete [] extractedPathString;
|
||||
|
||||
delete path;
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue