getting dos path from cygwin (programmatically)

Corinna Vinschen
Thu Apr 11 06:33:00 GMT 2002

On Thu, Apr 11, 2002 at 09:46:30AM +0200, Andreas Ames wrote:
> Hi all,
> Pavel Tsekov <> writes:
> > Yes! Use the cygpath.exe utility.
> I've got a related question: Is there an easy to use interface (say in
> cygwin1.dll) to convert paths between cywin and windows conventions
> programmatically i.e. directly callable from C-code?  If so, which
> header(s) do I need?

#include <sys/cygwin.h>

A look into that file gives you all you need.  Please use the
"cygwin_XXX" functions rather than the "cygwin32_XXX" functions
which are deprecated.


Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                      
Red Hat, Inc.

Unsubscribe info:
Bug reporting:

More information about the Cygwin mailing list