Trying to convert this function from its current form (see attached attempt) , to a function that uses one line and sscanf to readin users text and inputs (bold, underlined,italics, textsize) and then pass to another function. Here is the function, untouched:void gatherWebPageText( webPageTextLine* lineArray )
{
char* ptr;
char buff[BUFSIZ];
short currentLine;
currentLine = -1; /* Negative one because the do-while loop will increment to zero */

do
{
currentLine++;

/* Get the text for the line */
puts(""); /* Blank line */
puts("------------------------------------------------------------------------");
puts("Please type the next line of text for the web page and then press enter.");
puts(" If you would like a blank line simply press enter.");
printf(" To finish entering lines press the '%c' character and press enter.\n",END_OF_INPUT);
fflush(stdout); /* Needed before a fgets() */
fgets( buff, BUFSIZ, stdin );

ptr = gets(lineArray[currentLine].text);

fflush(stdin);

if ((ptr[0] != END_OF_INPUT) && /* Terminating character */
(ptr[0] != '\0' )) /* blank line */
{
puts(""); /* Blank line */
puts(""); /* Blank line */

ptr = malloc( strlen(buff)+1 );
strcpy(ptr, buff );

/* Does the user want the entered line to be bold? */
printf("Do you want to show this line in bold? (Enter 0 for 'NO' or 1 for 'YES'): ");
fflush(stdout); /* Needed before a fgets() */
fgets( buff, BUFSIZ, stdin );
sscanf( buff, "%d", &getNumberInRange);
lineArray[currentLine].isBold = getNumberInRange(0,1);

/* Does the user want the entered line to be italicized? */
printf("Do you want to show this line in italics? (Enter 0 for 'NO' or 1 for 'YES'): ");
fflush(stdout); /* Needed before a fgets() */
fgets( buff, BUFSIZ, stdin );
lineArray[currentLine].isItalics = getNumberInRange(0,1);

/* Does the user want the entered line to be underlined? */
printf("Do you want this line to be underlined? (Enter 0 for 'NO' or 1 for 'YES'): ");
fflush(stdout); /* Needed before a fgets() */
fgets( buff, BUFSIZ, stdin );
lineArray[currentLine].isUnderlined = getNumberInRange(0,1);

/* How large a font does the user want to display the text? */
printf("How large do you want the text? 1 (smallest) to 7 (largest): ");
fflush(stdout); /* Needed before a fgets() */
fgets( buff, BUFSIZ, stdin );
lineArray[currentLine].textSize = getNumberInRange(1,7);
}

} while ((lineArray[currentLine].text[0] != END_OF_INPUT) &&
((currentLine+1) < MAX_WEB_PAGE_LINES));

return;
}

And here is my about my fourth attempt on it:
void gatherWebPageText( webPageTextLine* lineArray )
{
char buff[BUFSIZ];
char* ptr;
short currentLine;

currentLine = -1; /* Negative one because the do-while loop will increment to zero */

do
{
currentLine++;

/* Get the text for the line */
puts(""); /* Blank line */
puts("------------------------------------------------------------------------");
puts("Please type the next line of text for the web page and then press enter.");
puts(" If you would like a blank line simply press enter.");
printf(" To finish entering lines press the '%c' character and press enter.\n",END_OF_INPUT);
fflush(stdout);
fgets(buff, BUFSIZ, stdin);

lineArray[currentLine].text = malloc( strlen(buff)+1 );

sscanf( buff,"%d,%d,%d,%d,%s", getNumberInRange(0,1), getNumberInRange(0,1), getNumberInRange(0,1),
getNumberInRange(1,7));
ptr = gets(lineArray[currentLine].text);

lineArray[currentLine].isBold = getNumberInRange(0,1);
lineArray[currentLine].isItalics = getNumberInRange(0,1);
lineArray[currentLine].isUnderlined = getNumberInRange(0,1);
lineArray[currentLine].textSize = getNumberInRange(1,7);

if ((ptr[0] != END_OF_INPUT) && /* Terminating character */
(ptr[0] != '\0' ))
break; /* blank line */


/* Blank line */
// puts(""); /* Blank line */
/*
// /* Does the user want the entered line to be bold? */
// printf("Do you want to show this line in bold? (Enter 0 for 'NO' or 1 for 'YES'): ");
// lineArray[currentLine].isBold = getNumberInRange(0,1);

// /* Does the user want the entered line to be italicized? */
// printf("Do you want to show this line in italics? (Enter 0 for 'NO' or 1 for 'YES'): ");
// lineArray[currentLine].isItalics = getNumberInRange(0,1);

// /* Does the user want the entered line to be underlined? */
// printf("Do you want this line to be underlined? (Enter 0 for 'NO' or 1 for 'YES'): ");
// lineArray[currentLine].isUnderlined = getNumberInRange(0,1);

// /* How large a font does the user want to display the text? */
// printf("How large do you want the text? 1 (smallest) to 7 (largest): ");
// lineArray[currentLine].textSize = getNumberInRange(1,7);
// }


} while ((lineArray[currentLine].text[0] != END_OF_INPUT) &&
((currentLine+1) < MAX_WEB_PAGE_LINES));

return;
}

Hopefully someone can help

thanks,
Mattz