ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ API Support » Truncating message when i put thru C program

Post new topic  Reply to topic
 Truncating message when i put thru C program « View previous topic :: View next topic » 
Author Message
nanibala
PostPosted: Thu Mar 10, 2005 11:52 am    Post subject: Truncating message when i put thru C program Reply with quote

Newbie

Joined: 10 Dec 2004
Posts: 6

Hi All,

I am new to C and writing pgm to put a message into queue.

I have an issue like, when i put a message with null characters by executing C program, the message is truncating after the null value.

For ex: if my input message is "ABCD GHIJK", when i execute the program to put a message, in a queue i am getting as "ABCD".The remaining strings are truncated.

What am i missing??

Any idea on this will be really helpful.

Thanks in advance,

Regards,
Bala.
Back to top
View user's profile Send private message
bower5932
PostPosted: Thu Mar 10, 2005 12:28 pm    Post subject: Reply with quote

Jedi Knight

Joined: 27 Aug 2001
Posts: 3023
Location: Dallas, TX, USA

Without seeing your actual code, my guess would be that you don't really have 'ABCD GHIJK'. The blank is probably a binary 0 which terminates strings in C. If you are using the str* calls to do your manipulation, you'll lose the end of the string. If you truly have nulls in your string, then you need to switch over to the mem* calls to do your string manipulation.'
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Truncating message when i put thru C program
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.