Search Results

Search: Posts Made By: powyama
Forum: Programming 12-10-2012
1,849
Posted By powyama
New program after alteration: questions:: 1)...
New program after alteration:
questions::
1) Is this way of writing integer to the file is correct?
if correct the why i am getting an empty file?
if wrong means how should i write an...
Forum: Programming 12-10-2012
1,849
Posted By powyama
File creation problem
I am creating a file to store data, but the file does not get created at all.

#include <unistd.h>
#define DEFAULT_ID 0

int main()
{
int d, n=0;
int sz, data=0;
char fn[256];
...
Forum: Programming 10-22-2012
3,195
Posted By powyama
Hi Expl and JohnGraham int main() { ...
Hi Expl and JohnGraham

int main() {
unsigned char wwn[8]="\x50\x00\x53\x30\x8\x9\x82\x17";
unsigned char wwn1[8]="\x50\x00\x53\x30\x08\x09\x82\x21";
print_wwn(wwn);
...
Forum: Programming 10-18-2012
3,195
Posted By powyama
Thanks a lot expl
Thanks a lot expl
Forum: Programming 10-18-2012
3,195
Posted By powyama
Hi Expl and JohnGraham 1)Can i know the...
Hi Expl and JohnGraham

1)Can i know the reason why the compile doesn't understand the following assignment?

(i)unsigned char pwwn[8]="0x5000533008098217";
or
(ii)unsigned char...
Forum: Programming 10-18-2012
3,195
Posted By powyama
Thanks for ur input JohnGraham cat int.c ...
Thanks for ur input JohnGraham

cat int.c

int main() {
unsigned char wwn[8];
unsigned char pwwn[8]="0x5000533008098217";
wwn[0]=0x50;
wwn[1]=0x00;
wwn[2]=0x53;
...
Forum: Programming 10-18-2012
3,195
Posted By powyama
char array
cat int.c

int main() {
unsigned char wwn[8];
wwn[0]=50;
wwn[1]=00;
wwn[2]=53;
wwn[3]=30;
wwn[4]=08;
wwn[5]=09;
wwn[6]=82;
wwn[7]=17;
printf("WWN:...
Forum: Programming 10-18-2012
1,156
Posted By powyama
If you what to open the directory, open...
If you what to open the directory,
open directory with vi editor, it will display all the file names inside it.
Forum: Programming 10-17-2012
1,422
Posted By powyama
For unsigned interger the MSB(most significant...
For unsigned interger the MSB(most significant bit) is '0'.
For signed interger the MSB(most significant bit) is '1'.

For example,(I) 12 is represented as 0000 1100
(II)-12 is...
Forum: Programming 10-16-2012
2,153
Posted By powyama
Hi Don cragun, its exactly like this #define...
Hi Don cragun, its exactly like this
#define TI_ZN_FAILOVER (1 << 1) /* bit 1 */
#define TI_ENT_PORT (1 << 2) /* bit 2 */
#define TI_ENT_WWN (1 << 3) /* bit 3 */...
Forum: Programming 10-16-2012
2,153
Posted By powyama
bit manipulation
what is the difference b/w

1) #define TI_ZN (1 << 1)
#define TI_ZN (1 << 2)
and
2) #define TI_ZN 2
#define TI_ZN 4

Instead of using left...
2,047
Posted By powyama
What is the function to get address of the virtual memory block in linux??
I want address of current virtual memory block?
i am using fedora10:wall::wall:
1,622
Posted By powyama
how to register ISR for PCI slot???
:wall::wall::wall:how to register ISR for PCI slot using callback registery (in c programing)
i am using fedora 10 os.:wall::wall::wall::wall::wall:
Forum: Programming 09-26-2011
1,539
Posted By powyama
API for registering a callback function.
how to register callback function in unix??
Showing results 1 to 14 of 14

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