LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 07-18-2008, 09:47 PM   #1
thinice15
Member
 
Registered: Feb 2008
Distribution: Slackware 12.0
Posts: 37

Rep: Reputation: 15
How to create a directory?


I was just trying to figure out how to create a directory using a C program under Linux with gcc.
If anyone can i help please do.


-thanks
 
Old 07-18-2008, 10:02 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Uh - "man mkdir"?

Quote:
MKDIR(2) Linux Programmer's Manual MKDIR(2)

NAME
mkdir - create a directory

SYNOPSIS
#include <sys/stat.h>
#include <sys/types.h>
#include <fcntl.h>
#include <unistd.h>

int mkdir(const char *pathname, mode_t mode);
 
Old 07-18-2008, 10:02 PM   #3
jiml8
Senior Member
 
Registered: Sep 2003
Posts: 3,171

Rep: Reputation: 116Reputation: 116
system("mkdir mydir");
 
Old 07-19-2008, 12:45 AM   #4
thinice15
Member
 
Registered: Feb 2008
Distribution: Slackware 12.0
Posts: 37

Original Poster
Rep: Reputation: 15
Thanks for the help guys i really appreciate it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
create a directory in C++ poeta_boy Programming 15 11-02-2011 01:53 PM
How do i create a directory ? vskgopu Programming 1 07-26-2006 03:25 AM
How to create new directory?? Jorine Programming 4 12-01-2004 12:38 AM
can't create new directory dummoi Linux - Newbie 4 06-24-2004 02:50 PM
Create a directory SnowSurfAir Linux - Software 15 07-21-2003 06:12 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 09:06 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration