This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: getting dos path from cygwin (programmatically)


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]