Rev 8622 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8622 | Rev 8624 | ||
---|---|---|---|
Line 1... | Line 1... | ||
1 | #include |
1 | #include |
2 | #include |
2 | #include |
Line 3... | Line 3... | ||
3 | 3 | ||
4 | int fputs(const char *str, FILE *stream){ |
- | |
5 | int s_code; |
4 | int fputs(const char *str, FILE *stream){ |
6 | for(int i=0; i |
5 | for(size_t i = 0; i < strlen(str); i++){ |
- | 6 | if (fputc(str[i], stream) == EOF) { |
|
7 | s_code = fputc(str[i], stream); |
7 | return EOF; |
- | 8 | } |
|
8 | } |
9 | } |
9 | return s_code; |
10 | return 0; |
10 | } |
11 | }> |