[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


_splitpath

This function takes a path and returns pointers to each of the components of the path.

Compatibility:

This function is compatible with the following targets:

ANSI
BeOS
EMB/RTOS

Mac OS

Palm OS

Win32


Prototype:
#include <extras.h>
void _splitpath (const char *path, char *drive,
   char *dir, char *fname, char *ext)
Parameters:

Parameters for this function are:

path  
const char *  
The file path to be split  
drive  
char *  
The string to receive the drive component  
dir  
char *  
The string to receive the directory component  
fname  
char *  
The string to receive the filename component  
ext  
char *  
The string to receive the file extension component  

Remarks:

The programmer must provide arrays large enough to hold the various components

See Also:

"chdir"


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 16, 2000