1#include "stdio_impl.h" 2#include <string.h> 3#ifndef __LITEOS__ 4#include "param_check.h" 5#endif 6 7int fputs(const char *restrict s, FILE *restrict f) 8{ 9#ifndef __LITEOS__ 10 PARAM_CHECK(f); 11#endif 12 size_t l = strlen(s); 13 return (fwrite(s, 1, l, f)==l) - 1; 14} 15 16weak_alias(fputs, fputs_unlocked); 17