public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Ale <elcorreodeale@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] [OT] mkdir in a C program?
Date: Fri, 4 Apr 2008 12:06:46 -0300	[thread overview]
Message-ID: <60a795cd0804040806l7f92d2xd124a103cdfa5cd0@mail.gmail.com> (raw)
In-Reply-To: <d9a0a6da0804040757i3171bb55h6e3d38a6f6d45f92@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 633 bytes --]

2008/4/4, Denis <denis.che@gmail.com>:
>
> Does anyone know if a directory can be created from inside a C program
> and how that is done?  Suppose I run the code from my own directory
> /home/mydir, and I want the code to create a directory
> /home/mydir/mydata, where data is to be written, what would the format
> for such a command be?  Also, when you write files to
> /home/mydir/mydata, do i put in something like "./mydata/filename" as
> the filename to open/write?
>
> Many thanks!
> Denis


Take a look on system function, for example system("mkdir /home/mydir");

Cheers!

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

[-- Attachment #2: Type: text/html, Size: 1160 bytes --]

  reply	other threads:[~2008-04-04 15:06 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-04-04 14:57 [gentoo-user] [OT] mkdir in a C program? Denis
2008-04-04 15:06 ` Ale [this message]
2008-04-04 15:10 ` Francisco Rivas
2008-04-04 15:12 ` Markus Schönhaber
2008-04-04 15:20   ` Denis
2008-04-04 15:22     ` Francisco Rivas
2008-04-04 15:31       ` Denis
2008-04-04 15:36         ` Francisco Rivas
2008-04-04 15:38           ` Denis

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=60a795cd0804040806l7f92d2xd124a103cdfa5cd0@mail.gmail.com \
    --to=elcorreodeale@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox