prev up next   top/contents search

comp.lang.c FAQ list · Question 1.6

Q: I'm trying to declare a pointer and allocate some space for it, but it's not working. What's wrong with this code?

char *p;
*p = malloc(10);


A: The pointer you declared is p, not *p. See question 4.2.


prev up next   contents search
about this FAQ list   about eskimo   search   feedback   copyright

Hosted by Eskimo North