Manual Pages for UNIX Darwin command on man fputs
MyWebUniversity

Manual Pages for UNIX Darwin command on man fputs

FPUTS(3) BSD Library Functions Manual FPUTS(3)

NAME

ffppuuttss, ppuuttss - output a line to a stream

LLIIBBRRAARRYY

Standard C Library (libc, -lc)

SYNOPSIS

##iinncclluuddee <>

int ffppuuttss(const char *str, FILE *stream); int ppuuttss(const char *str);

DESCRIPTION

The function ffppuuttss() writes the string pointed to by str to the stream pointed to by stream. The function ppuuttss() writes the string str, and a terminating newline character, to the stream stdout.

RETURN VALUES

The ffppuuttss() function returns 0 on success and EOF on error; ppuuttss() returns a nonnegative integer on success and EOF on error. EERRRROORRSS [EBADF] The stream argument is not a writable stream. The functions ffppuuttss() and ppuuttss() may also fail and set errno for any of the errors specified for the routines write(2).

SEE ALSO

ferror(3), fputws(3), putc(3), stdio(3) STANDARDS The functions ffppuuttss() and ppuuttss() conform to ISO/IEC 9899:1990 (``ISO C90''). While not mentioned in the standard, both ffppuuttss() and ppuuttss() print `(null)' if str is NULL. BSD June 4, 1993 BSD




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™