PUTS.3
资源名称:os_source.zip [点击查看]
上传用户:datang2001
上传日期:2007-02-01
资源大小:53269k
文件大小:1k
源码类别:
操作系统开发
开发平台:
C/C++
- ." @(#)puts.3s 6.1 (Berkeley) 5/15/85
- ."
- .TH PUTS 3 "May 15, 1985"
- .AT 3
- .SH NAME
- puts, fputs - put a string on a stream
- .SH SYNOPSIS
- .nf
- .ft B
- #include <stdio.h>
- int puts(char *fIsfP)
- int fputs(char *fIsfP, FILE *fIstreamfP)
- .ft P
- .fi
- .SH DESCRIPTION
- .B Puts
- copies the null-terminated string
- .I s
- to the standard output stream
- .B stdout
- and appends a
- newline character.
- .PP
- .B Fputs
- copies the null-terminated string
- .I s
- to the named output
- .IR stream .
- .PP
- Neither routine copies the terminal null character.
- .SH "SEE ALSO"
- .BR fopen (3),
- .BR gets (3),
- .BR putc (3),
- .BR printf (3),
- .BR ferror (3),
- .BR fread (3).
- .SH BUGS
- .B Puts
- appends a newline,
- .B fputs
- does not, all in the name of backward compatibility.