mconv_gets(3m17n) The m17n Library mconv_gets(3m17n)NAME
mconv_gets - Read a line using a code converter.
SYNOPSIS
MText* mconv_gets (MConverter * converter, MText * mt)
DESCRIPTION
Read a line using a code converter. The mconv_gets() function reads one line from the buffer area or the stream that is currently bound to
code converter converter. The decoder of converter is used for decoding. The decoded character sequence is appended at the end of M-text
mt. The final newline character in the original byte sequence is not appended. The internal status of converter is updated appropriately.
RETURN VALUE
If the operation was successful, mconv_gets() returns the modified mt. If it encounters EOF without reading a single character, it
returns mt without changing it. If an error is detected, it returns NULL and assigns an error code to merror_code.
ERRORS
MERROR_CODING
SEE ALSO
mconv_getc(), mconv_ungetc(), mconv_putc()
COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
<http://www.gnu.org/licenses/fdl.html>.
Version 1.6.2 12 Jan 2011 mconv_gets(3m17n)
Check Out this Related Man Page
mconv_buffer_converter(3m17n) The m17n Library mconv_buffer_converter(3m17n)NAME
mconv_buffer_converter - Create a code converter bound to a buffer.
SYNOPSIS
MConverter* mconv_buffer_converter (MSymbol name, const unsigned char * buf, int n)
DESCRIPTION
Create a code converter bound to a buffer. The mconv_buffer_converter() function creates a pointer to a code converter for coding system
name. The code converter is bound to buffer area of n bytes pointed to by buf. Subsequent decodings and encodings are done to/from this
buffer area.
name can be Mnil. In this case, a coding system associated with the current locale (LC_CTYPE) is used.
RETURN VALUE
If the operation was successful, mconv_buffer_converter() returns the created code converter. Otherwise it returns NULL and assigns an
error code to the external variable merror_code.
ERRORS
MERROR_SYMBOL, MERROR_CODING
See Also:
mconv_stream_converter()
COPYRIGHT
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011 National Institute of Advanced Industrial Science and Technology (AIST)
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License
<http://www.gnu.org/licenses/fdl.html>.
Version 1.6.2 12 Jan 2011 mconv_buffer_converter(3m17n)
Hi,
Iam trying to get make a serial connection to an Ultra 10 from my laptop. I've set the output to goto ttya in the nvram parameters. Iam using a db9 converter at the laptop end and a db25 converter at the ultra 10 end-I know the adapters are fine and so is the cable. Iam just not able to get it... (3 Replies)
Hello everyone.
I'm stuck with an error message that neither I nor any of my computer science peeps can understand. The program I wrote is meant to be a simple decimal to binary converter, but with this message it's more complicated than I thought.
Here's the code:
#include <iostream>... (2 Replies)
Hello everyone.
I'm stuck with an error message that neither I nor any of my computer science peeps can understand. The program I wrote is meant to be a simple decimal to binary converter, but with this message it's more complicated than I thought.
Here's the code:
#include <iostream>... (3 Replies)
Dear All,
I have a file like:
If $4=2001, a duplicated line will be inserted and $4 will be assigned value 2011; so that the new file would be:
How to write awk to accomplish this? thank you very much! (5 Replies)