#define STRLEN 65
/*Create linked list */
struct node {
char str[STRLEN];
struct node *next;
};
newInput = malloc(sizeof(struct node));
strcpy(newStr, newInput->str);
I left the other parts of the code, but it doesnt seem to be copying the string into newInput->str.
The string accepted is only 64 bytes.
It's just blank when I print it out after the copy. Any clue why?