Search:

Type: Posts; User: sonjared

Search: Search took 0.00 seconds.

  1. Thread: Linked Lists

    by sonjared
    Replies
    18
    Views
    3,935

    This opens up an interesting discussion. If...

    This opens up an interesting discussion. If malloc fails and the program has not previously requested sufficient memory to complete execution, what other option is there than to terminate as...
  2. Thread: Linked Lists

    by sonjared
    Replies
    18
    Views
    3,935

    Good question. Another good question would be...

    Good question. Another good question would be what if the host system does not release allocated memory on process termination. How would you solve those two problems?

    Another improvement could be...
  3. Thread: Linked Lists

    by sonjared
    Replies
    18
    Views
    3,935

    I disagree. Look at the description of the...

    I disagree. Look at the description of the problem from post #4 and you'll see that generating a list from a string is a very small part of the program. Also, given the utterly simple nature of the...
  4. Thread: Linked Lists

    by sonjared
    Replies
    18
    Views
    3,935

    That's a shame. But as far as how to go about it,...

    That's a shame. But as far as how to go about it, it is quite simple and essentially nothing changes with how a list of any other type might be managed:


    #include <stdio.h>
    #include <stdlib.h>
    ...
  5. Thread: Linked Lists

    by sonjared
    Replies
    18
    Views
    3,935

    Are you sure you want each node in the list to...

    Are you sure you want each node in the list to represent a single character? That is a very wasteful design given that each character has at least the additional overhead of a pointer.
Results 1 to 5 of 5