summaryrefslogtreecommitdiff
path: root/fatfs/doc/ja/gets.html
blob: 2babef0979d833ee9bc7595e366444828ae4ebd4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Shift_JIS">
<meta http-equiv="Content-Style-Type" content="text/css">
<link rel="up" title="FatFs" href="../00index_j.html">
<link rel="alternate" hreflang="en" title="English" href="../en/gets.html">
<link rel="stylesheet" href="../css_j.css" type="text/css" media="screen" title="ELM Default">
<title>FatFs - f_gets</title>
</head>

<body>

<div class="para func">
<h2>f_gets</h2>
<p>�t�@�C�����當�����ǂݏo���܂��B</p>
<pre>
TCHAR* f_gets (
  TCHAR* <span class="arg">buff</span>, <span class="c">/* [OUT] �o�b�t�@ */</span>
  int <span class="arg">len</span>,     <span class="c">/* [IN] �o�b�t�@�̃T�C�Y */</span>
  FIL* <span class="arg">fp</span>      <span class="c">/* [IN] �t�@�C���E�I�u�W�F�N�g */</span>
);
</pre>
</div>

<div class="para arg">
<h4>����</h4>
<dl class="par">
<dt>buff</dt>
<dd>�������ǂݏo���o�b�t�@���w���|�C���^���w�肵�܂��B</dd>
<dt>len</dt>
<dd>�o�b�t�@�̃T�C�Y��v�f���Ŏw�肵�܂��B</dd>
<dt>fp</dt>
<dd>�t�@�C���E�I�u�W�F�N�g�\���̂ւ̃|�C���^���w�肵�܂��B</dd>
</dl>
</div>


<div class="para ret">
<h4>�߂�l</h4>
<p>�֐������������<tt class="arg">buff</tt>���Ԃ���܂��B</p>
</div>


<div class="para desc">
<h4>���</h4>
<p>���̊֐���<a href="read.html"><tt>f_read()</tt></a>�̃��b�p�[�֐��ł��B�ǂݏo������́A�ŏ���<tt>'\n'</tt>��ǂݍ��ނ��A�t�@�C���I�[�ɒB���邩�A<tt class="arg">len</tt> - 1������ǂݏo���܂ő����܂��B�ǂݍ��܂ꂽ������̏I�[�ɂ�<tt>'\0'</tt>���t������܂��B���Ƀt�@�C���I�[��1�������ǂݍ��܂�Ȃ������Ƃ��A�܂��͉��炩�̃G���[�����������Ƃ��͊֐��͎��s���k���E�|�C���^��Ԃ��܂��B�t�@�C���I�[���G���[����<tt>f_eof()</tt>,<tt>f_error()</tt>�}�N���Œ��ׂ��܂��B</p>
<p>Unicode API�\��(<tt>_LFN_UNICODE == 1</tt>)���I������Ă���Ƃ��́A<tt class="arg">buff</tt>��UTF-16������ɂȂ�܂����A�t�@�C����̃G���R�[�h�́A<tt>_STRF_ENCODE</tt>�I�v�V�����őI���ł��܂��B����ȊO�̎��͖��ϊ�(1�o�C�g/1����)�œǂݏo���܂��B</p>
</div>


<div class="para comp">
<h4>�Ή����</h4>
<p><tt>_USE_STRFUNC</tt>��1�܂���2�̂Ƃ��g�p�”\�ł��B2�̂Ƃ��́A�t�@�C���Ɋ܂܂��<tt>'\r'</tt>����菜����ăo�b�t�@�ɓǂݍ��܂�܂��B</p>
</div>


<div class="para ref">
<h4>�Q��</h4>
<p><tt><a href="open.html">f_open</a>, <a href="read.html">f_read</a>, <a href="putc.html">f_putc</a>, <a href="puts.html">f_puts</a>, <a href="printf.html">f_printf</a>, <a href="close.html">f_close</a>, <a href="sfile.html">FIL</a></tt></p>
</div>

<p class="foot"><a href="../00index_j.html">�߂�</a></p>
</body>
</html>