#include <stdio.h>
#include <stdlib.h>
int main(void)
{
int result = 0;
for (char ch = 'a'; (result != EOF) && (ch != 'z'); ch++)
result = putc(ch, stdout);
if (result == EOF) {
if (ferror(stdout)) {
puts("putc() error");
exit(EXIT_FAILURE);
}
}
return 0;
}
/*
run:
abcdefghijklmnopqrstuvwxy
*/