Question: I am new to c++ programming I have to call a function with following arguments.
int Start (int argc, char \*\*argv).

When I try to call the above function with the code below I get run time exceptions. Can some one help me out in resolving the above problem.

```
char * filename=NULL;
char **Argument1=NULL;
int Argument=0;
int j = 0;
int k = 0;
int i=0;

int Arg()
{
filename = "Globuss -dc bird.jpg\0";

for(i=0;filename[i]!=NULL;i++)
 {
   if ((const char *)filename[i]!=" ")
    {
   Argument1[j][k++] = NULL; // Here I get An unhandled 
                             // exception of type 
                             //'System.NullReferenceException' 
                             // occurred
       j++;
       k=0; 
    }

   else
    {
       (const char )Argument1[j][k] = filename [j]; // Here I also i get exception
        k++;
        Argument++;
    }
 }

Argument ++;
return 0;
}

Start (Argument,Argument1);

```

Answer: 
Always remember in Joomla! never to modify core code, always overwrite the core templates by following the following guide [http://docs.joomla.org/Tutorial\_talk:Template\_overrides](http://www.techportal.co.za/joomla/joomla-tutorials/124-how-to-modify-the-appearance-of-the-category-list-page-without-having-modifications-done-to-the-joomla-core-code)

[1](http://www.techportal.co.za/joomla/joomla-tutorials/124-how-to-modify-the-appearance-of-the-category-list-page-without-having-modifications-done-to-the-joomla-core-code): <http://docs.joomla.org/Tutorial_talk:Template_overrides> or a quick how to <http://www.techportal.co.za/joomla/joomla-tutorials/124-how-to-modify-the-appearance-of-the-category-list-page-without-having-modifications-done-to-the-joomla-core-code>

If you do this in the core it will work, but once you may upgrade your changes could be gone.
Since joomla is written in php you could use [strip\_tags](http://php.net/manual/en/function.strip-tags.php)