Can anyone please help me? I need to remove the first character from a char *
in C.
For example, char * contents
contains a \'\\n\'
It sounds as if you're under the impression that a char* "contains" characters. It does not. It merely points at a byte. The rest of the string is implied to consist of the subsequent byte in memory up until the next null byte. (You should also be aware that although the 'char' data type is a byte, by definition, it is not really a character - please be aware of Unicode - and nor is a byte necessarily an octet.)
The char* is not an array, either, although there may exist an array of characters such that the pointer is pointing to the beginning of that array.