Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Gentoo User (http://www.linux-archive.org/gentoo-user/)
-   -   mkdir in a C program? (http://www.linux-archive.org/gentoo-user/64118-mkdir-c-program.html)

Denis 04-04-2008 03:31 PM

mkdir in a C program?
 
Here's the simple program that demonstrates usage that's good enough for me:

#include <sys/stat.h>
#include <sys/types.h>

int main ()
{

mkdir("./mydata", 0777);

return 0;

}


On Fri, Apr 4, 2008 at 11:22 AM, Francisco Rivas <taken2k4@gmail.com> wrote:
> :D Good. Wich one you used?
>
>
>
> On Sat, Apr 5, 2008 at 10:50 AM, Denis <denis.che@gmail.com> wrote:
> >
> > Thank you for all the quick replies! That answers my question :-)
> >
> >
> >
> > --
> >
> > gentoo-user@lists.gentoo.org mailing list
> >
> >
>
>
>
>
> --
> Francisco Rivas
> http://www.vaslibre.org.ve
> -
> And on the seventh day God said :wq and then make
> http://beck3r.wordpress.com/
> Linux User (New) : #448324
> Linux Machine (New) : 355187
> ---
> 4to Congreso Nacional de SL
> http://www.cnsl.org.ve/tiki-index.php?page=carabobo
--
gentoo-user@lists.gentoo.org mailing list

"Francisco Rivas" 04-04-2008 03:36 PM

mkdir in a C program?
 
Good

Actually a think my question must be "Wich one did you use?" correct?, I wrote wrong, didn't I?

Thanks in advance. :D

On Sat, Apr 5, 2008 at 11:01 AM, Denis <denis.che@gmail.com> wrote:

Here's the simple program that demonstrates usage that's good enough for me:



#include <sys/stat.h>

#include <sys/types.h>



int main ()

{



*mkdir("./mydata", 0777);



*return 0;



}





On Fri, Apr 4, 2008 at 11:22 AM, Francisco Rivas <taken2k4@gmail.com> wrote:

> :D Good. Wich one you used?

>

>

>

> On Sat, Apr 5, 2008 at 10:50 AM, Denis <denis.che@gmail.com> wrote:

> >

> > Thank you for all the quick replies! *That answers my question :-)

> >

> >

> >

> > --

> >

> > gentoo-user@lists.gentoo.org mailing list

> >

> >

>

>

>

>

> --

> Francisco Rivas

> http://www.vaslibre.org.ve

> -

> *And on the seventh day God said :wq and then make

> http://beck3r.wordpress.com/

> *Linux User (New) : #448324

> Linux Machine (New) : 355187

> ---

> 4to Congreso Nacional de SL

> http://www.cnsl.org.ve/tiki-index.php?page=carabobo

--

gentoo-user@lists.gentoo.org mailing list





--
Francisco Rivas
http://www.vaslibre.org.ve
-
And on the seventh day God said :wq and then make
http://beck3r.wordpress.com/

Linux User (New) : #448324
Linux Machine (New) : 355187
---
4to Congreso Nacional de SL
http://www.cnsl.org.ve/tiki-index.php?page=carabobo

Denis 04-04-2008 03:38 PM

mkdir in a C program?
 
> Actually a think my question must be "Wich one did you use?" correct?, I
> wrote wrong, didn't I?

Yea, it should be "Which one did you use?" :-)
--
gentoo-user@lists.gentoo.org mailing list


All times are GMT. The time now is 11:28 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.