Break a path name into components. These functions are deprecated because more secure versions are available, see _splitpath_s, _wsplitpath_s.
[code]
void _splitpath(
const char *path,
char *drive,
char *dir,
char *fname,
char *ext
);
void _wsplitpath(
const wchar_t *path,
wchar_t *drive,
wchar_t *dir,
wchar_t *fname,
wchar_t *ext
);
[/code]
Parameters
path
Full path
drive
Optional drive letter, followed by a colon (:)
dir
Optional directory path, including trailing slash. Forward slashes ( / ), backslashes ( \ ), or both may be used.
fname
Base filename (no extension)
ext
Optional filename extension, including leading period (.)
Requirements
_splitpath <stdlib.h>
_wsplitpath <stdlib.h> or <wchar.h>
[code]
void _splitpath(
const char *path,
char *drive,
char *dir,
char *fname,
char *ext
);
void _wsplitpath(
const wchar_t *path,
wchar_t *drive,
wchar_t *dir,
wchar_t *fname,
wchar_t *ext
);
[/code]
Parameters
path
Full path
drive
Optional drive letter, followed by a colon (:)
dir
Optional directory path, including trailing slash. Forward slashes ( / ), backslashes ( \ ), or both may be used.
fname
Base filename (no extension)
ext
Optional filename extension, including leading period (.)
Requirements
_splitpath <stdlib.h>
_wsplitpath <stdlib.h> or <wchar.h>
'Windows > MFC' 카테고리의 다른 글
dll에 Bitmap Resource 가져오기 (0) | 2013.10.02 |
---|---|
SDI, MDI 에서 메뉴 없애기 hMenu (0) | 2013.10.02 |
ADO Classes Sample Code (0) | 2013.10.02 |
A set of ADO classes - version 2.20 By Carlos Antollini (ADODB) (0) | 2013.10.02 |
CList 에서 RemoveAt 사용법 (0) | 2013.10.02 |