I am wondering,How to write a function in c that return *int* pointer for any *string* input

The below function is my attempt to solve the requirment

```
int* methodname(char* param)
{
  int *a;
  int b=3;
  a=&b;
  return a; 
}

```

Please correct me for any mistakes.