Search:

Type: Posts; User: prihod

Search: Search took 0.01 seconds.

  1. Segmentation fault when deleting node from BST, using double pointers

    Hi Guys, can you please point out what could be the issue with code below. I guess I m doing something wrong with pointers maintenance however from my perspective this code should be ok.

    What I am...
  2. Replies
    1
    Views
    2,236

    Linked List remove node issue

    Hi Everyone,
    I am stuck at removing element from linked list. The error I get while compiling under linux is:

    Error I get from windows is:


    The structure and function that I use to delete...
  3. Replies
    6
    Views
    1,490

    The thing is that input size is arbitrary, I do...

    The thing is that input size is arbitrary, I do not know it before hand. Should I be reallocating memory before each new item added to string ?

    Such as:


    string=(char *)malloc(sizeof(char));...
  4. Replies
    6
    Views
    1,490

    Newbie question about string processing

    Hi, the question I am about to ask is a part of bigger home work task. However I am stuck at this and do not know how to proceed further. My task is to receive input from the user, the input is...
  5. Excellent, the code is following: #include...

    Excellent, the code is following:



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

    typedef struct node *link;
    struct node {
    char data;
  6. I checked it, it will return NULL in FindNode...

    I checked it, it will return NULL in FindNode function only if node that I am looking for is not located. However if I substitute value of a node that exists the lets say, in the middle of the list,...
  7. Deleting node from linked list, need explanation

    Hi Everyone, I have been playing around with linked lists and I got stuck with one issue. The issue is following:
    lets say you have two structures and couple of functions, such as:


    typedef...
Results 1 to 7 of 7