title: Create a path of files and folder under linux ubuntu in C
body: <p>I have the following code</p>
  
  <pre><code>system("mkdir workspace");
  char*files = malloc(sizeof(char*) * strlen(address));
  sprintf(files, " %s", address);
  char*command = malloc(sizeof(char*) * strlen(address) + 256);
  sprintf(command, "mkdir -p workspace/%s", files);
  system(command);
  </code></pre>
  
  <p>The problem is that I want to create the folder address inside the folder workspace like workspace > www.google.com .. but instead these two folders are created in same folder and I don't know what I am doing wrong. can anyone help me please?</p>