Search:

Type: Posts; User: VinrVanyali

Search: Search took 0.01 seconds.

  1. Replies
    9
    Views
    2,566

    Ah thank you very much; it's working perfectly...

    Ah thank you very much; it's working perfectly now.
  2. Replies
    9
    Views
    2,566

    #include #include struct...

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

    struct nodePayload{
    int number;
    };

    struct node{
    struct nodePayload *payload;
    struct node *next;
  3. Replies
    9
    Views
    2,566

    temp->payload = malloc(sizeof(struct...

    temp->payload = malloc(sizeof(struct nodePayload));
    I'm very new to c. I tried adding this before the first malloc, but I don't know what I'm doing. Can you spell it out for me?
  4. Replies
    9
    Views
    2,566

    What should I have done? Also it crashes on...

    What should I have done?

    Also it crashes on its third running of S_ADD.
  5. Replies
    9
    Views
    2,566

    Struct and Malloc Help

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

    struct nodePayload{
    int number;
    };

    struct node{
    struct nodePayload *payload;
    struct node *next;
Results 1 to 5 of 5