|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Truncating message when i put thru C program |
« View previous topic :: View next topic » |
Author |
Message
|
nanibala |
Posted: Thu Mar 10, 2005 11:52 am Post subject: Truncating message when i put thru C program |
|
|
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 |
|
 |
bower5932 |
Posted: Thu Mar 10, 2005 12:28 pm Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|