Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-doc
Path: blob/main/documentation/manual-pages/ru/man1/file2c.1
18093 views
.\"----------------------------------------------------------------------------
.\" "THE BEER-WARE LICENSE" (Revision 42):
.\" <[email protected]> wrote this file.  As long as you retain this notice, you
.\" can do whatever you want with this file. If we meet some day, and you think
.\" this stuff is worth it, you can buy me a beer in return.  Poul-Henning Kamp
.\" ---------------------------------------------------------------------------
.\"
.\" %FreeBSD: src/usr.bin/file2c/file2c.1,v 1.13.2.1 2007/11/14 19:24:10 ru Exp %
.\" $FreeBSDru: frdp/doc/ru_RU.KOI8-R/man/man1/file2c.1,v 1.4 2007/11/16 11:31:27 ru Exp $
.\" $FreeBSD$
.\"
.Dd 22 ����� 2007
.Dt FILE2C 1
.Os
.Sh ��������
.Nm file2c
.Nd ���������� ���� � �������� C
.Sh ���������
.Nm
.Op Fl sx
.Op Fl n Ar �����
.Op Ar ������� Op Ar �������
.Sh ��������
�������
.Nm
������ ���� �� ������������ ����� � ����� ��� � ����������� �����, �� ����
��������� ������ ���� � ��� ���������� ��� ����������������� �������������.
�������� ���� ����������� ��������.
�� ��������� ���������� ����� ������� �� �������.
�� ��������� �������� ���� ��������� � ���������� ����, �� ���� ������� �����
.Fl x ,
�������� ����� �������� � ����������������� ����.
���� ������� �����
.Fl s ,
� ������ ������ ������ ����� ������� ������ ���������, � ����� ������
������� ����� ��������� ������, ����� ��������� ������� � ������.
.Pp
��� ������ ����� 70 ������ �� ������, ��� ������
����������� � ����� ������������ �� ��������� ������.
�����
.Fl n
��������� �������� ����� ������ ����� ��������� ���������� ����������
�������� ����.
��� ���� ����� ������ �� ����� ������ ����.
��� ������ �������� ���� ���� �� ����� ������ ����� ������ �����
.Fl n
������������� �����.
.Pp
������� � ������� ����� ���� �������� �� � ����� �������� ���� ��������������.
���� ������� ������ ���� �������, ������� ����� ������ ���� ������.
������ �����, �� ���������� ������ \[en] �������, �� ��� ����� ���������
�����, ������� ������� ������� �� �������.
.Pp
��� ��������� ������ ������������ ��� ��������� �������� ������ � ��������� C.
������� ������������ ��� ������� �������, � ������� ������������ ��� ����������
��������� C.
�����
.Fl n , s
�
.Fl x
�������, ����� �������� ������ ������������ ����� ������ ��� � �����
������ ���������� �������� ��� �������������.
������ \[en] ������� ������ ������ ������.
.Sh �������
�������:
.Bd -literal -offset indent
date | file2c 'const char date[] = {' ',0};'
.Ed
.Pp
�������:
.Bd -literal -offset indent
const char date[] = {
83,97,116,32,74,97,110,32,50,56,32,49,54,58,50,56,58,48,53,
32,80,83,84,32,49,57,57,53,10
,0};
.Ed