This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: system mkdir
- From: Christopher Faylor <cgf-use-the-mailinglist-please at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Mon, 28 Nov 2011 15:33:57 -0500
- Subject: Re: system mkdir
- References: <CAKfLWNo3MTYWNZj0G-giFSe8PkBsP+0P1J+C9u-nrvo0JfrZnw@mail.gmail.com> <CAKfLWNqbU2SAYByjgaXLvLxZFQnNvHfWG+7ww_ORWpdBWpKy4Q@mail.gmail.com>
- Reply-to: cygwin at cygwin dot com
On Mon, Nov 28, 2011 at 01:31:26PM -0700, Fitzy wrote:
>?Hello,
>? I have a program which I wrote using Visual Studio 2010, everything
>works fine there.
>Now I'm trying to get it all running properly under Cygwin. ?It is
>compiling successfully, but the following does not work:
>system("mkdir temp");
>I use this to create a temporary directory to which temporary files
>are written. ?It is then deleted when the program is finished.
>?Under VS this command works, under Cygwin it does nothing. ?I've
>tried various alternatives
>"sudo mkdir temp" etc...
>?But can't find anything that will programatically create a directory
>under Cygwin.
>
>?Does anyone know how to do this?
Yes. Use the mkdir() function. That is, in fact, very similar to how it
should be done in Visual Studio too.
cgf
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple