hey guys,
I was going through some code and I was just wondering what is going on it.
I have never seen strings like this before. For example the *(s1+i)='\0';. I have only seem them like s1[0]='\0';. Is this something equivalent to that?Code:char *s1,*sE; //*s was a char passed in for (i=0;i<=len;i++) { *(s1+i)='\0'; *(sE+i)='\0'; }; for (i=0;i<=len;i++) { *(s1+i)=*(s+i); }; for (i=strlen(s1);i<=len;i++) { *(s1+i)='\0'; }; strcpy(sEdit,s1);