fgetws.3 (c879ae3536e6d92b8d96c8965c5b05fcb9541520) | fgetws.3 (e74101e4eff767325553039def89de70b70f36d3) |
---|---|
1.\" Copyright (c) 1990, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" Chris Torek and the American National Standards Committee X3, 6.\" on Information Processing Systems. 7.\" 8.\" Redistribution and use in source and binary forms, with or without 9.\" modification, are permitted provided that the following conditions 10.\" are met: 11.\" 1. Redistributions of source code must retain the above copyright 12.\" notice, this list of conditions and the following disclaimer. 13.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" notice, this list of conditions and the following disclaimer in the 15.\" documentation and/or other materials provided with the distribution. | 1.\" Copyright (c) 1990, 1991, 1993 2.\" The Regents of the University of California. All rights reserved. 3.\" 4.\" This code is derived from software contributed to Berkeley by 5.\" Chris Torek and the American National Standards Committee X3, 6.\" on Information Processing Systems. 7.\" 8.\" Redistribution and use in source and binary forms, with or without 9.\" modification, are permitted provided that the following conditions 10.\" are met: 11.\" 1. Redistributions of source code must retain the above copyright 12.\" notice, this list of conditions and the following disclaimer. 13.\" 2. Redistributions in binary form must reproduce the above copyright 14.\" notice, this list of conditions and the following disclaimer in the 15.\" documentation and/or other materials provided with the distribution. |
16.\" 3. All advertising materials mentioning features or use of this software 17.\" must display the following acknowledgement: 18.\" This product includes software developed by the University of 19.\" California, Berkeley and its contributors. |
|
16.\" 4. Neither the name of the University nor the names of its contributors 17.\" may be used to endorse or promote products derived from this software 18.\" without specific prior written permission. 19.\" 20.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 21.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 22.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 23.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE --- 16 unchanged lines hidden (view full) --- 40.Nm fgetws 41.Nd get a line of wide characters from a stream 42.Sh LIBRARY 43.Lb libc 44.Sh SYNOPSIS 45.In stdio.h 46.In wchar.h 47.Ft "wchar_t *" | 20.\" 4. Neither the name of the University nor the names of its contributors 21.\" may be used to endorse or promote products derived from this software 22.\" without specific prior written permission. 23.\" 24.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 25.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 26.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 27.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE --- 16 unchanged lines hidden (view full) --- 44.Nm fgetws 45.Nd get a line of wide characters from a stream 46.Sh LIBRARY 47.Lb libc 48.Sh SYNOPSIS 49.In stdio.h 50.In wchar.h 51.Ft "wchar_t *" |
48.Fn fgetws "wchar_t * restrict ws" "int n" "FILE * restrict fp" | 52.Fn fgetws "wchar_t *restrict ws" "int n" "FILE *restrict fp" |
49.Sh DESCRIPTION 50The 51.Fn fgetws 52function 53reads at most one less than the number of characters specified by 54.Fa n 55from the given 56.Fa fp --- 24 unchanged lines hidden (view full) --- 81.Fn fgetws 82function 83does not distinguish between end-of-file and error, and callers must use 84.Xr feof 3 85and 86.Xr ferror 3 87to determine which occurred. 88.Sh ERRORS | 53.Sh DESCRIPTION 54The 55.Fn fgetws 56function 57reads at most one less than the number of characters specified by 58.Fa n 59from the given 60.Fa fp --- 24 unchanged lines hidden (view full) --- 85.Fn fgetws 86function 87does not distinguish between end-of-file and error, and callers must use 88.Xr feof 3 89and 90.Xr ferror 3 91to determine which occurred. 92.Sh ERRORS |
89The 90.Fn fgetws 91function will fail if: | |
92.Bl -tag -width Er 93.It Bq Er EBADF 94The given 95.Fa fp 96argument is not a readable stream. 97.It Bq Er EILSEQ 98The data obtained from the input stream does not form a valid 99multibyte character. --- 22 unchanged lines hidden --- | 93.Bl -tag -width Er 94.It Bq Er EBADF 95The given 96.Fa fp 97argument is not a readable stream. 98.It Bq Er EILSEQ 99The data obtained from the input stream does not form a valid 100multibyte character. --- 22 unchanged lines hidden --- |