char* differs in levels of indirection from char(*)[100]
<p>basically I am taking user input and using it to delete from a list, when this error has just been thrown. The code was working literally an hour ago so I don't know why Visual studio is now chucking a fit about it. </p>

<pre><code>char courseName[100];
scanf("%s", courseName);
deletefromlist(&amp;list, &amp;courseName);
</code></pre>

<p><code>deletefrom</code> list function takes <code>(Courselist * self, char * data)</code> as arguments.</p>

<p>How can i correct this error and in future avoid it? cheers!</p>