subdural
Junior Member level 1
- Joined
- Aug 21, 2004
- Messages
- 19
- Helped
- 1
- Reputation
- 2
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- Neutral Zone
- Activity points
- 173
Hi
I'm newbie. I need to know what is the subroutine in C language?
For example I have C source code name main1.c as below;
main()
{
int a = 0x12345678, b;
b = endswap(a);
printf("Existing value in hex: %X\n", a);
printf("Endian-swapped value in hex: %X\n", b);
}
How to link the subroutine with other C source code named endswap.c
Thanks in addvanced
I'm newbie. I need to know what is the subroutine in C language?
For example I have C source code name main1.c as below;
main()
{
int a = 0x12345678, b;
b = endswap(a);
printf("Existing value in hex: %X\n", a);
printf("Endian-swapped value in hex: %X\n", b);
}
How to link the subroutine with other C source code named endswap.c
Thanks in addvanced