Originally Posted by
laserlight
Don't you already know what are the delimiter strings (e.g., you know beforehand that you want to use CBOARD$ to denote the start delimiter for the first string, and PROGRAMMING$ as the end delimiter of the first string)? Or are you saying that you're trying to identify them, and then extract the strings?
.
Code:
Exactly, I know beforehand what are the delimiters ! , I already done as what Adriano tell but it still give me an Error compilation, meaning it doesn't even show something on the screen.
Secondly, I just searched on this forum about Strings's posts and want to verify something really confusing, I found we must declare like this statement(State is a pointer to String) : State[strlen[State]-1]='\0' in order to put '\0' in last char's places for getting a suitable string: but what why '\0' at index "strlen[State] -1 " , it should be at State[strlen]='\0' ; for instance lets assume I have a char array with size 50, char arr[50]={'h','e'}; so the strlen of arr here is 2, and I must but '\0' at third place which is strlen(arr) and not strlen(arr)-1 in order to get suitable string