Can anyone please help me? I need to remove the first character from a char * in C.
char *
For example, char * contents contains a \'\\n\'
char * contents
\'\\n\'
char* contents_chopped = contents + 1;
This will result in contents_chopped pointing to the same string, except the first char will be the next after \n
contents_chopped
Also, this method is faster.