- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- SYS$QIO and C string termination
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 12:44 AM
03-05-2004 12:44 AM
SYS$QIO and C string termination
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?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 01:00 AM
03-05-2004 01:00 AM
Re: SYS$QIO and C string termination
I can't understand if 3.rd char is wrong null or if you can read because end string.
In seceond case use memcpy instead strcpy function (you need pass string lenght).
If 1.st case you could post more details.
H.T.H.
@Antoniov
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2004 01:55 AM
03-05-2004 01:55 AM
Re: SYS$QIO and C string termination
Purely Personal Opinion
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2004 04:17 AM
03-06-2004 04:17 AM
Re: SYS$QIO and C string termination
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).
Allowing nulls in strings is one reason that VMS uses string descriptors -- which is another thing that C doesn't do very well.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2005 12:23 AM
08-30-2005 12:23 AM
Re: SYS$QIO and C string termination
Pointer to help on points:
http://forums1.itrc.hp.com/service/forums/helptips.do?#33
Thanks in advance.