cygwin_split_path
Prev | Chapter 2. Cygwin Functions | Next

## cygwin_split_path

`extern "C" void cygwin_split_path (` | path, |
| dir, |
| file`)`; |

`const char * path`;
`char * dir`;
`char * file`;

Split a path into the directory and the file portions. Both `dir` and `file` are expected to point to buffers of sufficient size.

Example 2.2. Example use of cygwin_split_path

    char dir[200], file[100];
    cygwin_split_path("c:/foo/bar.c", dir, file);
    printf("dir=%s, file=%s\n", dir, file);

Prev | Up | Next
cygwin_set_impersonation_token | Home | cygwin_stackdump