跳转到内容

puts : 写入一个字符串

#include <stdio.h>
int puts(const char *s);
int _puts_r(void *reent, const char *s);
```### 描述
puts 将位于 s 处的字符串(后跟一个换行符,而不是末尾的空字符)写入标准输出流。
替代函数 _puts_r 是一个可重入版本。额外的参数 reent 是一个指向可重入结构的指针。### 返回值
如果成功,结果为一个非负整数;否则,结果为 EOF。
---
**权威来源**: BUSMASTER DITA help source `puts.dita`, compiled into `BUSMASTER.CHM` with the application.