From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1JhnMg-0003jx-P7 for garchives@archives.gentoo.org; Fri, 04 Apr 2008 14:58:03 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C045FE078F; Fri, 4 Apr 2008 14:58:00 +0000 (UTC) Received: from gv-out-0910.google.com (gv-out-0910.google.com [216.239.58.184]) by pigeon.gentoo.org (Postfix) with ESMTP id 808F6E078F for ; Fri, 4 Apr 2008 14:58:00 +0000 (UTC) Received: by gv-out-0910.google.com with SMTP id n40so40652gve.39 for ; Fri, 04 Apr 2008 07:57:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; bh=JAC3KFoxvTzRetzYnz5Ihc1PEZ6wkkHz64fGgDmr9x0=; b=AGfzSc1uAzwjC1IWxBMhN+I7elpYyVODuA7dIQFNiWsHBJyOs4lF4uCHH+wukj9tLYF27iH/M4vkowaOMJ4oGlJ9HI2qnd5UA2y6RDrl1fMjzANwEVgA09sQh9nBLwbimjM8vYCgyWcrK9Cl9jdpr5dcb+lkb0JEuDYuSqcuCeU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=N3+YQU9+qmKGR7KFyl/m0ygunERf5n0OwjtAaGmZ0/LIaE97HohyTrsXWli+7mER1MgcZDvT12lS1Lo0qmvy8peK7OmYrQ/RNegOjp9Vx0os8k692dNCSDVp7wbO9Fk6xS7fxcSd9F4VZs6XM65vzL55o55ObIzk/8vLbFC0SHw= Received: by 10.150.192.7 with SMTP id p7mr688600ybf.21.1207321078846; Fri, 04 Apr 2008 07:57:58 -0700 (PDT) Received: by 10.151.11.7 with HTTP; Fri, 4 Apr 2008 07:57:58 -0700 (PDT) Message-ID: Date: Fri, 4 Apr 2008 10:57:58 -0400 From: Denis To: gentoo-user@lists.gentoo.org Subject: [gentoo-user] [OT] mkdir in a C program? Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Archives-Salt: 025e194f-bfd3-43f7-aedd-a0d7589adeed X-Archives-Hash: 482e7a07b304bf687937267e888c19ea 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 -- gentoo-user@lists.gentoo.org mailing list