« first day    last day (3622 days later) » 

12:02 AM
room topic changed to C: C is one of the most widely used programming languages of all time, and C compilers are available for the majority of available computer architectures and operating systems. | c-faq.com [c] [c11] [c89] [c99]
 
Hey all.
 
hello @dxhj
 
 
7 hours later…
8:32 AM
Good morning!
 
8:55 AM
It is very funny, how C newbies coming from other higher level languages (such as python or ruby) are looking for how to hack C to work with it as the way they used to in other languages (mostly OO)
(I'm saying that as a newbie, coming from python, started to work with C by searching for its OO capabilities first before I learnt how to think in others ways than objects are working :P)
 
9:54 AM
Hi, I have an extremely weird bug regarding stdio
0
Q: `fwrite` doesn't work directly after `fread`?

Alvin WongI have a program which uses stdio for reading and writing a binary file. It caches the current stream position and will not seek if the read/write offset is already at the desired position. However, an interesting problem appears, that when a byte is read and the following byte is written, it do...

 
heya @AlvinWong
I'm already reading your post
 
I just have a lot of things to do right now
(multitasking, you know :))
(or at least -- trying)
 
Thanks for trying :)
 
hmm.. @AlvinWong I think I can't reproduce your problem on a Mac
 
10:04 AM
@PeterVaro That's what annoys me, seems to happen on Windows only
Codepad also runs it correctly
 
 
6 hours later…
4:19 PM
yay @MartijnPieters
;)
 
I'll provide some padding here then. :-P
 
well thank you for that :D
 
 
2 hours later…
6:05 PM
   Reads  and  writes may be intermixed on read/write streams in any order.  Note that ANSI C requires that a file positioning function
   intervene between output and input, unless an input operation encounters end-of-file.  (If this condition is not met, then a read is
   allowed  to  return the result of writes other than the most recent.)  Therefore it is good practice (and indeed sometimes necessary
   under Linux) to put an fseek(3) or fgetpos(3) operation between write and read operations on such a stream.  This operation  may  be
Notice: "indeed sometimes necessary under Linux" ;)
 
that's what we were talking about in python
that is one of the most horrible questions I have ever seen in SO
seriously, if that guy stops programming bc of the rude response, I think
it will be a victory for humanity :d
 
don't be too hard on him :P
and I definitely saw worse questions than that
 
 
3 hours later…
9:02 PM
I appreciate any help on this
 

« first day    last day (3622 days later) »