Added: Post-solution of the actual Arron problem is provided by sgm in a comment. The text below is accurate and, hopefully, useful, but the second solution to the problem.
Your compiler will write very hard about pointer casts (do you use the C ++ compiler?), Adding an explicit cast like
sequence=(char**)malloc(sizeof(char *)*seqNum);
should make a mistake. Alternatively, you can convince the compiler to easily get to you using some option, for example
$(CC) --lighten-up-baby code.c
which may be preferable if it is in some third-party code that you really do not want to hack. Read your compiler documentation to find the option you need. Since all gcc at my fingertips (versions 4.0 and 4.2) are happy with this code, I am not in a good place to offer switch tips to disable this behavior.
dmckee
source share