I am error messages for these lines of code. Im not the best with programming, and can provide more information if need be.
int *linebreak(char *msg, int *breakn){
breakn = (int*)count_breaks(msg); //"cast to pointer from integer of different size
int *arr = (int*)malloc((int)breakn * sizeof(int)); //cast from pointer to integer of different size