Check out example codes for "passing 'const char *' to parameter of type 'char *' discards qualifiers". It will help you in understanding the concepts better.

Code Example 1

char* write_filename;

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

Learn ReactJs, React Native from akashmittal.com