public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: getting dos path from cygwin
@ 2002-04-10  8:25 Pavel Tsekov
  2002-04-11  1:38 ` getting dos path from cygwin (programmatically) Andreas Ames
  0 siblings, 1 reply; 4+ messages in thread
From: Pavel Tsekov @ 2002-04-10  8:25 UTC (permalink / raw)
  To: ian reinhart geiser; +Cc: cygwin

Hello ian,

Wednesday, April 10, 2002, 2:25:02 PM, you wrote:

irg> I am trying to call link.exe on a lib, but it is in my cygwin path and i
irg> cannot seem to find a good way to translate my cygwin path into a dos path so
irg> ms's silly tools can understand it.
 
irg> any hints?

Yes! Use the cygpath.exe utility.


--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: getting dos path from cygwin (programmatically)
  2002-04-10  8:25 getting dos path from cygwin Pavel Tsekov
@ 2002-04-11  1:38 ` Andreas Ames
  2002-04-11  6:33   ` Corinna Vinschen
  2002-04-11  6:34   ` Larry Hall (RFK Partners, Inc)
  0 siblings, 2 replies; 4+ messages in thread
From: Andreas Ames @ 2002-04-11  1:38 UTC (permalink / raw)
  To: Pavel Tsekov

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?


TIA

andreas

--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: getting dos path from cygwin (programmatically)
  2002-04-11  1:38 ` getting dos path from cygwin (programmatically) Andreas Ames
@ 2002-04-11  6:33   ` Corinna Vinschen
  2002-04-11  6:34   ` Larry Hall (RFK Partners, Inc)
  1 sibling, 0 replies; 4+ messages in thread
From: Corinna Vinschen @ 2002-04-11  6:33 UTC (permalink / raw)
  To: cygwin

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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: getting dos path from cygwin (programmatically)
  2002-04-11  1:38 ` getting dos path from cygwin (programmatically) Andreas Ames
  2002-04-11  6:33   ` Corinna Vinschen
@ 2002-04-11  6:34   ` Larry Hall (RFK Partners, Inc)
  1 sibling, 0 replies; 4+ messages in thread
From: Larry Hall (RFK Partners, Inc) @ 2002-04-11  6:34 UTC (permalink / raw)
  To: Andreas Ames, Pavel Tsekov

At 03:46 AM 4/11/2002, 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?



Documentation is your friend! :-)

http://cygwin.com/cygwin-api/cygwin-api.html


Larry Hall                              lhall@rfk.com
RFK Partners, Inc.                      http://www.rfk.com
838 Washington Street                   (508) 893-9779 - RFK Office
Holliston, MA 01746                     (508) 893-9889 - FAX


--
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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-04-11 13:33 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-04-10  8:25 getting dos path from cygwin Pavel Tsekov
2002-04-11  1:38 ` getting dos path from cygwin (programmatically) Andreas Ames
2002-04-11  6:33   ` Corinna Vinschen
2002-04-11  6:34   ` Larry Hall (RFK Partners, Inc)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).