Server for Information Technologies ������ ��������������
������� �������������� ����������
(095) 932-9212, 932-9213, 939-0783
E-mail: [email protected]
������ �������� ����(!) ������������� ���������� CIT Forum CD-ROM

PUTC(3S)

��������
putc, putchar, fputc, putw - ������ � ����� ������� ��� ��������� �����

���������

	#include <stdio.h>
	
	int putc (c, stream)
	char c;
	FILE *stream;
	
	int putchar (c)
	char c;
	
	int fputc (c, stream)
	char c;
	FILE *stream;
	
	int putw (w, stream)
	int w;
	FILE *stream;

��������
������ putc ���������� ������ c � ����� ������ stream (� �������, ���������� ���������� �����, ���� �� ���������). ������ putchar (c) ������������ ��� putc (c, stdout).

������� fputc ��������� �� �� ��������, ��� � ������ putc; ��� �������� ���������, ��� putc, �� �������� ������ ������������ �� ������ �������������. ����� ����, ������� ����� ���������� � �������� ���������.

������� putw ������� �������� ����� w (�������� ���� int) � ����� ������ stream (� �������, ���������� ���������� �����, ���� �� ���������). ������ ����� �������-�������. ��� ������ ������� �� ���������� 32 ����. ������� putw �� ������� � �� ��������� ������������ �� ������� ����� � �������� �����.

��. �����
fclose(3S), ferror(3S), fopen(3S), fread(3S), printf(3S), puts(3S), setbuf(3S), stdio(3S).

�����������
� ������ ������ ��������� ������� (����� putw) ���������� ��������� ��������. ������� putw ���������� ferror (stream). ��� ������� ��� ���������� ��������� EOF. ������ ���������, ���� ���� stream �� ������ �� ������ ���, ���� ���� ������ �� ����� �����. ��� ��� EOF - ���������� ����� ��������, ��� ������������� ������ putw ����� ������������ �������� ferror(3S).

�����������
��������� putc - ������, �������� stream ����������� �����������, ��� ����������� ��� ������� �������� ��������. � ���������, ����� putc (c, *f++) ����� ���� ������������� �������. � ����� ������� ������� ������������ fputc.

��-�� ��������� �������� � ����� ����� � ������� ���� �����, �������������� ��� ������ putw, �������� �������-���������� � ����� �� ���� ��������� ��� ������ getw �� ������ ����������.
Comments: [email protected]
Designed by Andrey Novikov
Copyright © CIT