I have come to the conclusion that the IDE was acting up, because when I copy->pasted the exact same source code in a new project in the same IDE (Pelles C) it worked. So I can only conclude that IDE...
Type: Posts; User: juvan
I have come to the conclusion that the IDE was acting up, because when I copy->pasted the exact same source code in a new project in the same IDE (Pelles C) it worked. So I can only conclude that IDE...
Hmmm, I think it has something to do with the two lines:
strcpy(&buf[strlen(buf)], token[i]);
strcpy(&buf[strlen(buf)], "\n");
more specifically the
strlen(buf) function, because if I...
I don't think it's the printf's fault. For the sake of clarity I will just paste the whole code, because I think the problem could be quite hidden in with all the pointers and what not. So here is...
Hi everybody, a new member writing here. I have a head scratcher on my hands.
Code: (the original source code is a bit longer with unneeded info (i think) so I didn't include all of it. Here is...
Nice of you to help, but now you're just patronizing. So let's just end the discussion.
HF.
I was searching with no success, would you perhaps have a link?
A) Yes it really is B) It's hard to look if you don't know what you're looking for.
In the HELP FILE: long long, unsigned long long | 8 bytes | 8 bytes | [3.00] 8 bytes
This was the only thing...
As I said, I don't care about printing large numbers and getting to see the right values, my problem was, when I at first said:
printf("=%lu =%lu\n", 11111111111, 11111111111); // Output:...
printf("=%lu =%lu\n", 11111111111UL, 11111111111UL);
This does not work.
But this:
printf("=%llu =%llu\n", 11111111111ULL, 11111111111ULL);
works like a charm, even if I input something like:...
Don't know exactly what you mean. If you mean
printf("=%u =%u\n", 11111111111UL, 11111111111UL);
or
printf("=%lu =%lu\n", 11111111111, 11111111111);
well neither work.
Hello
could someone please explain this odd behavior of a printf() funtion:
printf("=%lu =%lu\n", 11111111111, 11111111111); // Output: =2521176519 =2
Thank you.