Function Definitions
int echo_line(void)
{
char c;
if (scanf(" %c", &c)==EOF)
return EOF;
for( ; ; ) {
putchar(c);
if(c == '\n') return c;
c = getchar();
}
}
void print_stars(int vol)
{
while(vol-- > 0)
putchar('*');
printf("\n\n");
}
This is program
pg163.c
.
Previous slide
Next slide
Back to first slide
View graphic version