Forum: C Mar 8th, 2009 |
| Replies: 3 Views: 1,318 calloc initializes the memory with zero. calloc = clear + alloc |
Forum: C Feb 28th, 2009 |
| Replies: 8 Views: 481 Presumably he has random access to the list; otherwise this problem would be impossible.
The answer is pretty simple, and we're not just going to give you the answer.
Here's a hint though: ... |
Forum: C Nov 28th, 2008 |
| Replies: 2 Views: 439 message_to_network should already be a function that waits for a new message to reach the socket. I'm guessing about its implementation, but you should just need to call that function -- it will... |
Forum: C Jun 29th, 2007 |
| Replies: 6 Views: 7,326 That doesn't involve function pointers though :-/
Mentioning function pointers must be a sign of being completely lost, since there's only a finite constant set of values a function pointer can... |
Forum: C Jun 29th, 2007 |
| Replies: 6 Views: 7,326 I am very confused. How in the world are you going to implement a stack using function pointers? |
Forum: C May 4th, 2007 |
| Replies: 36 Views: 7,545 Not to mention that his very own example is still unsafe! |
Forum: C Nov 17th, 2006 |
| Replies: 2 Views: 1,542 http://eternallyconfuzzled.com/tuts/hashing.html |
Forum: C Jun 7th, 2006 |
| Replies: 3 Views: 1,387 Yes. Want to know how?
It's operating system specific, but one general option is to use the 'system' procedure. Or, if you're using a Unixy operating system and want more control over how things... |
Forum: C Apr 18th, 2006 |
| Replies: 2 Views: 846 = is the assignment operator, not equivalence test operator, and you probably declared a as const. |
Forum: C Mar 23rd, 2006 |
| Replies: 7 Views: 2,293 Um... yes. But not with the + operator, of course; with some specially built procedure. I don't know what you mean by 'add', either, but surely there's some way for you to write the algorithm. |