Gentoo Archives: gentoo-user

From: Ale <elcorreodeale@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] [OT] mkdir in a C program?
Date: Fri, 04 Apr 2008 15:06:51
Message-Id: 60a795cd0804040806l7f92d2xd124a103cdfa5cd0@mail.gmail.com
In Reply to: [gentoo-user] [OT] mkdir in a C program? by Denis
1 2008/4/4, Denis <denis.che@×××××.com>:
2 >
3 > Does anyone know if a directory can be created from inside a C program
4 > and how that is done? Suppose I run the code from my own directory
5 > /home/mydir, and I want the code to create a directory
6 > /home/mydir/mydata, where data is to be written, what would the format
7 > for such a command be? Also, when you write files to
8 > /home/mydir/mydata, do i put in something like "./mydata/filename" as
9 > the filename to open/write?
10 >
11 > Many thanks!
12 > Denis
13
14
15 Take a look on system function, for example system("mkdir /home/mydir");
16
17 Cheers!
18
19 --
20 > gentoo-user@l.g.o mailing list
21 >
22 >