Joel/ArkM, Thank you for the pointers. I just found the solution. Sorry for being so dumb, but I forgot the fundamentals of C. I did not NUL terminate the string after the strcpy call and if you don't C fills the memry with garbage.
ArkM,Thanks for replying.
1) If your reasoning is correct why does adding just sprintf change every thing.
It becomes more strange
after this.
#include <stdio.h>
#include<stdlib.h>
main (){
char mr[18],wmr[18];int imr = 0;char pcs[] = "H5146B2";char pi[]="210023610512918234"...
Can some body please help me here. I am just lost.
#include <stdio.h>
#include<stdlib.h>
main (){
char mr[18],wmr[18];int imr = 0;char pcs[] = "H5146B2";char pi[]="210023610512918234";
printf("Id = %s, pcs = %s \n",pi,pcs);
imr = atoi((char *)(strncpy((char *)(mr),(char *)pi+7,2))) + 2000...
I need a small information. I got the following error when I executed on of my programs. Can you please help me in debugging this?
Program received signal SIGBUS, Bus error
si_code: 1 - BUS_ADRALN - Invalid address alignment.
0x9fffffffec0f8be0:0 in lfind+0x40 () from...
Salem,
This is the information.
HP-UX B.11.23 U ia64 0337606528 .
I did not see the same warning on
HP-UX B.11.00 U 9000/800 1168911567 .
Thanks,
Mallik.
I am getting the following warnings, compiling C programs.
1)warning #2225-D: the format string ends before this argument
2)procedure main: warning #11013-D: Exceeding memory limits; some optimizations
skipped. There is no override...
As deFranze explained you can use a file for your systems to get the output out and write a cron job to monitor the same, whatever time interval you want, use the sendmail or mailx to send you emails.
We are using one such process.
Hi,
I compiled thie object library (liboBW.a) on a HP-UX B.11.23 U ia64.
I am trying to link it to a machine (B.11.00 U 9000/800), when I got this error.
Can somebody help me?
/usr/ccs/bin/ld: /opt/mms/wvs/Kom/liboBW.a: Not a valid library (invalid magic n
umber). Possibly a 64-bit PA archive...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.