answersLogoWhite

0


Best Answer

In ANSI/ISO standard there is no any function that would be capable of doing that. You should need to look for special system function in order to create folder. Systems with support for the POSIX libraries can use the mkdir() function. For example, if you are using UNIX type operating system, you could include "sys/dir.h" and use mkdir().

Example:

#include

#include

#include

int main() {

int code = mkdir("folder");

if (code 0) {

printf("SUCCESS\n");

} else {

printf("FAILURE\n");

}

return 0;

}

In this example we are calling other command line utility in background - mkdir and telling it to create folder named "folder".

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

11y ago

mkdir, fgets, mkdir

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How do you create a folder in c lang and take the name from user and how to create a folder inside user's folder?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the inside of a chicken egg?

ewan ko lang..


What did lumawig create for the people?

because ewan ko lang


Using Piriform CCleaner is deleting language binary files good or bad?

I don't quite get what you are trying to say, but are you saying can you delete the unneeded language files? You can delete the "lang" folder in the CCleaner directory (C:\Program Files\CCleaner), and it will have no effect on CCleaner except the fact you only have English to choose from. The English language file is not in the "lang" folder. However, you won't get much space back.


Where can one find information regarding java lang objects?

There are many places where one could find information regarding Java lang objects. One could check the official Java website for information from users regarding Java language objects.


Did lang lang die?

Lang Lang (pianist) is alive.


When was Lang Lang born?

Lang Lang was born on June 14, 1982.


What is Lang Lang's birthday?

Lang Lang was born on June 14, 1982.


What was the name of Mr. Ts character in Rocky 3?

Clubber Lang


What is the English translation for lang lang?

The English translation for lang lang is the words long, long. The words lang, lang are originally in Japanese and are spoken in numerous areas throughout the world.


What has the author James Lang written?

James Lang has written: 'Conquest and commerce' -- subject(s): Colonies, Commerce 'Inside development in Latin America' -- subject(s): Public health, Rural development projects, Agricultural development projects


How old is Lang Lang?

Chinese pianist Lang Lang is 35 years old (birthdate: June 14, 1982).


Does lang lang have kids?

Yes, Katherine Kelly Lang has 3 kids.