char delims[] = "\t \n";
char *result = NULL; // always hold the token serially
char *result = NULL; // always hold the token serially
result = strtok( curline, delims ); // get first token
count = 0;
while( result != NULL ) {
count++;
switch(count){
case 1:
strcpy(chromosomename, result);
break;
case 2:
strcpy(sStart,result);
startIndex=atoi(result);
break;
default:
fprintf(fppromotor,"%s\t",result);
break;
}
result = strtok( NULL, delims ); // get next token
}
Comments
Post a Comment