Hey there. I'm having a bit of a nightmare with this code mod..
I've a program that strips out the bit I need, but I can't figure out how to work with the struct octstr.. Could someone help me out please? Here's the program that'll strip out the hex message_id.. #include <stdio.h> #include <stdlib.h> #include <string.h> int main(int, char **); int main(int argc, char **argv) { char *start, *end; if(argc != 2) { printf("1 arg please\n"); exit(1); } start = index(argv[1], '/'); if (start != 0) { start++; start = index(start, '/'); } if (start == 0) { printf("start not found\n"); exit(1); } start++; end = index(start, '/'); if (end == 0) { printf("end not found\n"); exit(1); } end[0] = '\0'; printf("thingy = '%s'\n", start); exit(0); } Regards, David. ----- Original Message ----- From: "Stipe Tolj" <[EMAIL PROTECTED]> To: "Alexander Malysh" <[EMAIL PROTECTED]> Cc: "David Tully" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Thursday, June 26, 2003 4:41 PM Subject: [-] Re: non standard message_id breaks DLR > Alexander Malysh wrote: > > > > Hi David, > > > > strange... > > > > I have not never seen such message_id! One think i can say, SMSC is soooo > > buggy! It's not allowed to get one message id in submit_sm_resp and another > > one or part of them in delivery receipt. I would propose, you contact your > > operator and give him a hint to look in SMPP spec. ;) > > > > You can do only one here, write workaround for this... > > and ask your SMPP provider to tell you which SMSC vendor they use, so > we'll put it on the black-list ;) > > Stipe > > [EMAIL PROTECTED] > ------------------------------------------------------------------- > Wapme Systems AG > > Vogelsanger Weg 80 > 40470 Düsseldorf > > Tel: +49-211-74845-0 > Fax: +49-211-74845-299 > > E-Mail: [EMAIL PROTECTED] > Internet: http://www.wapme-systems.de > ------------------------------------------------------------------- > wapme.net - wherever you are > > >