C - Single Linked List: problems with scanf and pointers : <p><em>Ok this is going to be a really bad question, I can't figure out how to assign a float number with scanf:</em> </p>

<pre><code>float get_value(float * ptr){

printf("Immettere valore: ");
scanf("%f", &amp;(*ptr)); //THE ERROR IS HERE 

return *ptr; }
</code></pre>

<p><em>Don't really know what to do here. (THE ERROR IS HERE in the code)
Here is the other interested part:</em> </p>

<pre><code>...        switch (ch) {
        case 1: *value = get_value(value);
            break;
        case 2: pre_insert(&amp;listA, value);
            break;
        case 3: pre_insert(&amp;listB, value);
            break;
        case 4: end_insert(&amp;listA, value);
            break;
        case 5: end_insert(&amp;listB, value);
            break;

        default: printf("\nComando non valido.\n");
            break;
    }

}...
</code></pre>

<p><em>function prototipe:</em> <code>float get_value(float*);</code></p>
