getting dos path from cygwin (programmatically)

Corinna Vinschen cygwin@cygwin.com
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 <ptsekov@syntrex.com> 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

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Developer                                mailto:cygwin@cygwin.com
Red Hat, Inc.

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list