passing 'const char *' to parameter of type 'char *' discards qualifiers
snippet in c

passing 'const char *' to parameter of type 'char *' discards qualifiers

user4496

  char* write_filename;

              fopen((char*)write_filename,"wb");
                 makedir(write_filename);