<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>Operating System - OpenVMS의 주제 Re: SYS$QIO and C string termination</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/sys-qio-and-c-string-termination/m-p/3210494#M32658</link>
    <description>How about assigning some points to the responses?&lt;BR /&gt;&lt;BR /&gt;Pointer to help on points:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;</description>
    <pubDate>Tue, 30 Aug 2005 07:23:01 GMT</pubDate>
    <dc:creator>Stanley F Quayle</dc:creator>
    <dc:date>2005-08-30T07:23:01Z</dc:date>
    <item>
      <title>SYS$QIO and C string termination</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-qio-and-c-string-termination/m-p/3210490#M32654</link>
      <description>Hi&lt;BR /&gt;I'm using SYS$QIO to retreive a string from a device - it works fine accept that the 3rd char of the 7 char string is a null(\0) which is the termination of a string in C, so I can't get the whole string. Is there a way I can overcome this?</description>
      <pubDate>Fri, 05 Mar 2004 08:44:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-qio-and-c-string-termination/m-p/3210490#M32654</guid>
      <dc:creator>AntBark</dc:creator>
      <dc:date>2004-03-05T08:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$QIO and C string termination</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-qio-and-c-string-termination/m-p/3210491#M32655</link>
      <description>Hello,&lt;BR /&gt;I can't understand if 3.rd char is wrong null or if you can read because end string.&lt;BR /&gt;In seceond case use memcpy instead strcpy function (you need pass string lenght).&lt;BR /&gt;If 1.st case you could post more details.&lt;BR /&gt; &lt;BR /&gt;H.T.H.&lt;BR /&gt;@Antoniov&lt;BR /&gt;</description>
      <pubDate>Fri, 05 Mar 2004 09:00:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-qio-and-c-string-termination/m-p/3210491#M32655</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-03-05T09:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$QIO and C string termination</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-qio-and-c-string-termination/m-p/3210492#M32656</link>
      <description>The QIO will read the string irrespective of terminators unless you specify special options (for terminal driver). See I/O status block - will contain number of bytes received. If expected 7 bytes use memcpy to copy the data.</description>
      <pubDate>Fri, 05 Mar 2004 09:55:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-qio-and-c-string-termination/m-p/3210492#M32656</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2004-03-05T09:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$QIO and C string termination</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-qio-and-c-string-termination/m-p/3210493#M32657</link>
      <description>The idea that \0 terminates a string is only used by C.  The I/O Status Block (IOSB) returns the number of characters written to the string.   &lt;BR /&gt;&lt;BR /&gt;You're going to have to keep that size separately, and use functions that don't check for \0 (like memcpy instead of strcpy, as previously suggested).&lt;BR /&gt;&lt;BR /&gt;Allowing nulls in strings is one reason that VMS uses string descriptors -- which is another thing that C doesn't do very well.&lt;BR /&gt;</description>
      <pubDate>Sat, 06 Mar 2004 12:17:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-qio-and-c-string-termination/m-p/3210493#M32657</guid>
      <dc:creator>Stanley F Quayle</dc:creator>
      <dc:date>2004-03-06T12:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: SYS$QIO and C string termination</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/sys-qio-and-c-string-termination/m-p/3210494#M32658</link>
      <description>How about assigning some points to the responses?&lt;BR /&gt;&lt;BR /&gt;Pointer to help on points:&lt;BR /&gt;&lt;A href="http://forums1.itrc.hp.com/service/forums/helptips.do?#33" target="_blank"&gt;http://forums1.itrc.hp.com/service/forums/helptips.do?#33&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks in advance.&lt;BR /&gt;</description>
      <pubDate>Tue, 30 Aug 2005 07:23:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/sys-qio-and-c-string-termination/m-p/3210494#M32658</guid>
      <dc:creator>Stanley F Quayle</dc:creator>
      <dc:date>2005-08-30T07:23:01Z</dc:date>
    </item>
  </channel>
</rss>

