CYGWIN_SPLIT_PATH(3)

NAME
cygwin_split_path

SYNOPSIS

#include <sys/cygwin.h>

void cygwin_split_path(const char * path, char * dir, char * file);

DESCRIPTION

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

EXAMPLE

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);

COPYRIGHT

Copyright © 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015 Red Hat, Inc.

Permission is granted to make and distribute verbatim copies of this documentation provided the copyright notice and this permission notice are preserved on all copies.

Permission is granted to copy and distribute modified versions of this documentation under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one.

Permission is granted to copy and distribute translations of this documentation into another language, under the above conditions for modified versions, except that this permission notice may be stated in a translation approved by the Free Software Foundation.