hello i have my funcion like:
void enterString(char *string) {
    string = (char*)malloc(15);
    printf("Enter string: ");
    scanf("%s",string); //don't care about length of string now
}
int main() {
   char *my_string = NULL;
   enterString(my_string);
   printf("My string: %s\n",my_string); /* it's null but i want it to 
                                          show string i typed from 
                                           enterString */
   return 0;
}
I want to string from function show on string in main ... I don't know if you'll understand me. Thank you :)
 
    