Search:

Type: Posts; User: Mandy_C

Search: Search took 0.00 seconds.

  1. Replies
    14
    Views
    12,763

    Thank you all for your help :D

    Thank you all for your help :D
  2. Replies
    14
    Views
    12,763

    oh ok .. so as the function is now, if ive...

    oh ok .. so as the function is now, if ive understood you correctly, the memory allocated to the node is cleared?
    so, is there any other way to check the memory is deallocated or is it down to...
  3. Replies
    14
    Views
    12,763

    ok, i understand that function...i think. i have...

    ok, i understand that function...i think.
    i have tried it, and it compiles and runs through the function but i dont think it is deallocating the memory.
    i have used the code from cdalten like this:...
  4. Replies
    14
    Views
    12,763

    thanks for the posts...i dont quite understand...

    thanks for the posts...i dont quite understand the function tho :confused:

    here is my whole code so far:


    #include<stdio.h>
    #include<stdlib.h>
    #include<string.h>

    struct node
  5. Replies
    14
    Views
    12,763

    yes, i intend to run the function just before the...

    yes, i intend to run the function just before the program closes so i can avoid memory leaks.

    so i dont need to bother about relinking the nodes on either side, i just need to remove everything
  6. Replies
    14
    Views
    12,763

    Deallocating memory for a linked list

    Hi everyone,
    i am trying to deallocate the memory for i linked list i allocated using malloc. but i cannot seem to clear the nodes.

    here is the relevant parts of my program:



    struct node
    {...
  7. Replies
    4
    Views
    1,744

    Of course !!! i shudda known that!!! :D ...

    Of course !!! i shudda known that!!!
    :D
    Thanks alot anyway, Salem, saved me once again!!!
  8. Replies
    4
    Views
    1,744

    great - thanks, it now works like that :) but...

    great - thanks, it now works like that :)

    but i havent agot a clue how i can display integers with a '0' in front.
    i.e. 8 is displayed as 08

    does any body have an idea?

    thanks
  9. Replies
    4
    Views
    1,744

    It's a question of time ...

    Hi guys,

    i would like to convert a 4 digit number (eg 0824) into a time so that i can find the length of time between two times.
    => so 0824 and 0927 gives 1 hour and 3 minutes

    i have found a...
  10. Thats awesome thank you sooo much :) this part...

    Thats awesome thank you sooo much :)

    this part of the program is working good now :)

    thanks a lot!!!
  11. Thank you for your help Salem, i have corrected...

    Thank you for your help Salem, i have corrected the function to expect a char array character array. btu i still am unable to get the information from the linked list. when the program runs the...
  12. My first and probably last LINKED LIST! - Please help

    Hi everyone,

    I'm new to this site and also a beginner at C programming, I was wondering if anyone could help me with this problem that I have involving a linked list.

    I always get a 'bus...
Results 1 to 12 of 12