Subversion Repositories Kolibri OS

Rev

Rev 8730 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #include <stdio.h>
  2. #include <string.h>
  3.  
  4. int fputs(const char *str, FILE *stream){
  5.     size_t str_len = strlen(str);
  6.     if(str_len == fwrite(str, sizeof(char), str_len , stream)){
  7.         return str[str_len-1];
  8.     }else{
  9.         return EOF;
  10.     }
  11. }