• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 #include "stdio_impl.h"
2 #include <string.h>
3 #ifndef __LITEOS__
4 #include "param_check.h"
5 #endif
6 
fputs(const char * restrict s,FILE * restrict f)7 int 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 
16 weak_alias(fputs, fputs_unlocked);
17