Hey guys,
What I need is relatively simple. I need to convert two longs (each 4 digits, "0" padded) into a single long long.
e.g.
long a, b;
long long c;
a = 3;
b = 4;
sprintf((char*) c,"%04ld%04ld",a,b);
The result should be c is equal to 00030004. That method doesn't work though. Anyone got any ideas? Do I need to convert it to a string first then to a long long?