Stack placement
char *mystring ="love is alweys better yoe";
This creates a string literal in read-only memory, and you cannot subsequently write it to change characters.
Instead, you should initialize your line as follows:
char mystring[] ="love is alweys better yoe";
An array of characters of size 26 bytes will be allocated here - 1 byte per character terminated by a null character \0.
, (.. \0), , , .
( , ). , , :
int bufferSize = 26;
char* mystring = malloc(bufferSize);
strncpy(mystring, "love is alweys better yoe", bufferSize);
free , :
free(mystring);
free ing , char* , , free. free , .
, realloc:
char* mybiggerString = realloc(mystring, bufferSize + 10);
strncpy(mystring, "I can fit more in this string now!", bufferSize);