char *word = malloc(sizeof(char) * (pos + 1));
is producing an SIGTRAP error. pos
is an int
.
How do I know this is the line? Process of elimination with break points.
I searched and did not find any information on this function producing this error. What should I do?