c - Remove first few characters from a string -


i need remove first 3 characters array without libraries. how go doing this? know can use memmove i'm working on system without standard library, memmove pointers. memmove can this:

void chopn(char *str, size_t n) {     assert(n != 0 && str != 0);     size_t len = strlen(str);     if (n > len)         return;  // or: n = len;     memmove(str, str+n, len - n + 1); } 

but remove characters array without memmove or other standard library functions?

as long know string @ least 3 characters long, can use str + 3.


Comments

Popular posts from this blog

sql server - Cannot query correctly (MSSQL - PHP - JSON) -

php - trouble displaying mysqli database results in correct order -

C++ Linked List -