total newbie here.
i was trying to replace a character in char * but my program gives error
int main(int argc, char **argv)
char *mystring ="love is alweys better yoe";
int count = 1;
for (count ; count < 23; count++)
if ((mystring[count] == 0x65 )) //&& ((mystring[count+1] > 0x41) && (mystring[count+1] < 0x7A)))
mystring[count] = 0x45; //here occur the freezing
printf ("%c\n", mystring[count]);
char *mystring ="love is alweys better yoe"
makes mystring read-only
you need to copy the string into a buffer before you can change it
char mystring; strcpy( mystring , "love is alweys better yoe" );