Subversion Repositories Kolibri OS

Rev

Rev 4921 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4921 Rev 6099
Line 130... Line 130...
130
 
130
 
Line 131... Line 131...
131
.       %[*][<[width]>][<[size]>]<[type]>
131
.       %[*][<[width]>][<[size]>]<[type]>
132
 
132
 
133
        Each format specification begins with the percent character (<<%>>).
133
        Each format specification begins with the percent character (<<%>>).
134
        The other fields are:
134
        The other fields are:
-
 
135
	O+
135
	o+
136
		o *
136
		o *
137
 
Line 137... Line 138...
137
		an optional marker; if present, it suppresses interpretation and
138
		an optional marker; if present, it suppresses interpretation and
-
 
139
        assignment of this input field.
138
        assignment of this input field.
140
 
139
 
141
        o <[width]>
140
        o <[width]>
142
 
141
		an optional maximum field width: a decimal integer,
143
		an optional maximum field width: a decimal integer,
142
		which controls the maximum number of characters that
144
		which controls the maximum number of characters that
Line 148... Line 150...
148
		If a whitespace or a non-convertable character occurs
150
		If a whitespace or a non-convertable character occurs
149
		before <[width]> character are read, the characters up
151
		before <[width]> character are read, the characters up
150
		to that character are read, converted, and stored.
152
		to that character are read, converted, and stored.
151
		Then <> proceeds to the next format specification.
153
		Then <> proceeds to the next format specification.
Line 152... Line 154...
152
 
154
 
-
 
155
        o <[size]>
153
        o size
156
 
154
		<>, <>, <>, <>, <>, and <> are optional size
157
		<>, <>, <>, <>, <>, and <> are optional size
155
		characters which override the default way that <>
158
		characters which override the default way that <>
Line -... Line 159...
-
 
159
		interprets the data type of the corresponding argument.
-
 
160
 
-
 
161
		@multitable @columnfractions 0.18 0.30 0.52
156
		interprets the data type of the corresponding argument.
162
		@headitem
157
 
163
		Modifier
-
 
164
		@tab
-
 
165
		Type(s)
-
 
166
		@tab
-
 
167
		@item
158
 
168
		hh
-
 
169
		@tab
159
.Modifier   Type(s)
170
		d, i, o, u, x, n
-
 
171
		@tab
160
.   hh      d, i, o, u, x, n  convert input to char,
172
		convert input to char, store in char object
-
 
173
		@item
161
.                             store in char object
174
		h
-
 
175
		@tab
162
.
176
		d, i, o, u, x, n
-
 
177
		@tab
163
.   h       d, i, o, u, x, n  convert input to short,
178
		convert input to short, store in short object
-
 
179
		@item
164
.                             store in short object
180
		h
-
 
181
		@tab
165
.
182
		D, I, O, U, X, e, f, c, s, p
-
 
183
		@tab
166
.   h       D, I, O, U, X     no effect
184
		no effect
-
 
185
		@item
167
.           e, f, c, s, p
186
		j
-
 
187
		@tab
168
.
188
		d, i, o, u, x, n
-
 
189
		@tab
169
.   j       d, i, o, u, x, n  convert input to intmax_t,
190
		convert input to intmax_t, store in intmax_t object
-
 
191
		@item
170
.                             store in intmax_t object
192
		j
-
 
193
		@tab
-
 
194
		all others
-
 
195
		@tab
171
.
196
		no effect
-
 
197
		@item
172
.   j       all others        no effect
198
		l
-
 
199
		@tab
173
.
200
		d, i, o, u, x, n
-
 
201
		@tab
174
.   l       d, i, o, u, x, n  convert input to long,
202
		convert input to long, store in long object
-
 
203
		@item
175
.                             store in long object
204
		l
-
 
205
		@tab
176
.
206
		e, f, g
-
 
207
		@tab
177
.   l       e, f, g           convert input to double
208
		convert input to double, store in a double object
-
 
209
		@item
178
.                             store in a double object
210
		l
-
 
211
		@tab
179
.
212
		D, I, O, U, X, c, s, p
-
 
213
		@tab
180
.   l       D, I, O, U, X     no effect
214
		no effect
-
 
215
		@item
181
.           c, s, p
216
		ll
-
 
217
		@tab
182
.
218
		d, i, o, u, x, n
-
 
219
		@tab
183
.   ll      d, i, o, u, x, n  convert to long long,
220
		convert to long long, store in long long object
-
 
221
		@item
184
.                             store in long long
222
		L
-
 
223
		@tab
185
.
224
		d, i, o, u, x, n
-
 
225
		@tab
186
.   L       d, i, o, u, x, n  convert to long long,
226
		convert to long long, store in long long object
-
 
227
		@item
187
.                             store in long long
228
		L
-
 
229
		@tab
188
.
230
		e, f, g, E, G
-
 
231
		@tab
189
.   L       e, f, g, E, G     convert to long double,
232
		convert to long double, store in long double object
-
 
233
		@item
190
.                             store in long double
234
		L
-
 
235
		@tab
-
 
236
		all others
-
 
237
		@tab
191
.
238
		no effect
-
 
239
		@item
192
.   L       all others        no effect
240
		t
-
 
241
		@tab
193
.
242
		d, i, o, u, x, n
-
 
243
		@tab
194
.   t       d, i, o, u, x, n  convert input to ptrdiff_t,
244
		convert input to ptrdiff_t, store in ptrdiff_t object
-
 
245
		@item
195
.                             store in ptrdiff_t object
246
		t
-
 
247
		@tab
-
 
248
		all others
-
 
249
		@tab
196
.
250
		no effect
-
 
251
		@item
197
.   t       all others        no effect
252
		z
-
 
253
		@tab
198
.
254
		d, i, o, u, x, n
-
 
255
		@tab
199
.   z       d, i, o, u, x, n  convert input to size_t,
256
		convert input to size_t, store in size_t object
-
 
257
		@item
200
.                             store in size_t object
258
		z
201
.
259
		@tab
202
.   z       all others        no effect
260
		all others
-
 
261
		@tab
Line 203... Line 262...
203
.
262
		no effect
Line 204... Line 263...
204
 
263
		@end multitable
205
 
264
 
Line 243... Line 302...
243
 
302
 
244
		o u
303
		o u
245
		Reads an unsigned decimal integer into the corresponding
304
		Reads an unsigned decimal integer into the corresponding
Line 246... Line -...
246
		<[arg]>: <<(unsigned int *arg)>>.
-
 
247
			
305
		<[arg]>: <<(unsigned int *arg)>>.
248
 
306
 
249
		o U
307
		o U
Line 250... Line 308...
250
		Reads an unsigned decimal integer into the corresponding <[arg]>:
308
		Reads an unsigned decimal integer into the corresponding <[arg]>:
Line 314... Line 372...
314
 
372
 
Line 315... Line 373...
315
.		[+/-] ddddd[.]ddd [E|e[+|-]ddd]
373
.		[+/-] ddddd[.]ddd [E|e[+|-]ddd]
316
 
374
 
317
	where objects inclosed in square brackets are optional, and <>
375
	where objects inclosed in square brackets are optional, and <>
Line 318... Line 376...
318
	represents decimal, octal, or hexadecimal digits.
376
	represents decimal, octal, or hexadecimal digits.
319
	o-
377
	O-
320
 
378
 
321
RETURNS
379
RETURNS
Line 428... Line 486...
428
  ret = __ssvfscanf_r (_REENT, &f, fmt, ap);
486
  ret = __ssvfscanf_r (_REENT, &f, fmt, ap);
429
  va_end (ap);
487
  va_end (ap);
430
  return ret;
488
  return ret;
431
}
489
}
Line -... Line 490...
-
 
490
 
-
 
491
#ifdef _NANO_FORMATTED_IO
-
 
492
int
-
 
493
_EXFUN(siscanf, (const char *, const char *, ...)
-
 
494
       _ATTRIBUTE ((__alias__("sscanf"))));
-
 
495
#endif
432
 
496
 
Line 433... Line 497...
433
#endif /* !_REENT_ONLY */
497
#endif /* !_REENT_ONLY */
434
 
498
 
435
#ifdef _HAVE_STDC
499
#ifdef _HAVE_STDC
Line 465... Line 529...
465
#endif
529
#endif
466
  ret = __ssvfscanf_r (ptr, &f, fmt, ap);
530
  ret = __ssvfscanf_r (ptr, &f, fmt, ap);
467
  va_end (ap);
531
  va_end (ap);
468
  return ret;
532
  return ret;
469
}
533
}
-
 
534
 
-
 
535
#ifdef _NANO_FORMATTED_IO
-
 
536
int
-
 
537
_EXFUN(_siscanf_r, (struct _reent *, const char *, const char *, ...)
-
 
538
       _ATTRIBUTE ((__alias__("_sscanf_r"))));
-
 
539
#endif