Well, I did a simulation, and it appears that you are mistaken:
Code:
#include <stdio.h>
#include <string.h>
int main(void)
{
char sequence1[200];
char start[] = "AUG";
char *startcodon;
/* simulate reading into sequence1 */
int position;
strcpy(sequence1, "CCCAUGCCC");
/* end simulation */
/*sequence1 is already read in at this point*/
startcodon = strstr(sequence1, start);
printf("startcodon: %s\n", startcodon);
position = startcodon - sequence1;
printf("Position of start codon sequence 1: %d\n", position);
return 0;
}
Compiling and running the above program, I get the output:
Code:
startcodon: AUGCCC
Position of start codon sequence 1: 3
So, the problem likely lies with code that you did not show, e.g., the code that reads into sequence1.