Search Results

Search: Posts Made By: rkraj
Forum: Programming 08-13-2008
12,407
Posted By rkraj
Sorry about that in Linux version the od...
Sorry about that

in Linux version the od -xc gives

0000000 000a 0000 9893 42b3 4554 5453 4e49 0a47
\n \0 \0 \0 223 230 263 B T E S T I N G \n
0000020 0000 0000...
Forum: Programming 08-13-2008
12,407
Posted By rkraj
I took a simple structure like the below. It is...
I took a simple structure like the below.
It is very clear that the cksum vary here also.

#include<stdio.h>
#include<string.h>
#include<iostream.h>

struct temp
{
int a;
float f;
char...
Forum: Programming 08-13-2008
12,407
Posted By rkraj
I checked the fwrite both in Linux and UNIX, the...
I checked the fwrite both in Linux and UNIX, the number of items written is the same in both .

Regards
rkraj
Forum: Programming 08-12-2008
12,407
Posted By rkraj
I have checked the return code also. It is...
I have checked the return code also. It is success only.
But i am not sure how to get the same output in both OS's

regards
rkraj
Forum: Programming 08-12-2008
12,407
Posted By rkraj
Here is my program #include<stdio.h> ...
Here is my program

#include<stdio.h>
#include<string.h>
struct cross_output_entry
{
char stub_descr[80];
int sort_stub_route;
double arr[20];
};
struct...
Forum: Programming 08-12-2008
11,459
Posted By rkraj
Thanks. This is the simple approach. So passing...
Thanks.
This is the simple approach. So passing an array (integer or character) is passing an address and hence manipulating it will reflect in the called program also.

Regards
rkraj
Forum: Programming 08-12-2008
11,459
Posted By rkraj
But still i will not be able to pass the copy of...
But still i will not be able to pass the copy of my array. I can pass only one character. When i pass the array it implicilty passes the address.

Regards
rkraj
Forum: Programming 08-12-2008
11,459
Posted By rkraj
Passing by value a char array
Hi
I am passing or want to pass value of a char array, so that even thoug the called routine is changing the values the calling function should not see the values changed, meaning only copy should...
Forum: Programming 08-12-2008
12,407
Posted By rkraj
I am not able to read those files as it is in the...
I am not able to read those files as it is in the binary format.
When i debugged the application using gdb and when i tried to print the structure cross, i am getting the same values in both LINUX...
Forum: Programming 08-12-2008
12,407
Posted By rkraj
fwrite in Linux and UNIX
Hi
I have an fwrite function in my C++ application. It is able to create the files in HP-UX.

cross is one structure
rec2 is another structure within cross.

fwrite_return = fwrite(...
Forum: Programming 07-07-2008
34,100
Posted By rkraj
I understood what you said, but it works in...
I understood what you said, but it works in HP-UX. As the value in the members are filled with 0's, while in Linux (64 bit)

uname -a
Linux optiplex64 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 26...
Forum: Programming 07-07-2008
34,100
Posted By rkraj
Hi All I have missed one line. ...
Hi All
I have missed one line.
printf("%d",ims_fp->j);

I tried to acess one of the elements of the structure and then it gave the problem.

You may replace the function IMS_feof with the...
Forum: Programming 07-04-2008
34,100
Posted By rkraj
Cannot access memory at address 0x8
Hi All
I have a structure pointer and setting that pointer as NULL. When i tried to access the elements in the structure i am getting the error message.
"Cannot access memory at address 0x8". This...
Showing results 1 to 13 of 13

 
All times are GMT -4. The time now is 12:22 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy