Search:

Type: Posts; User: egoveneror2

Search: Search took 0.01 seconds.

  1. Thread: Binaries

    by egoveneror2
    Replies
    2
    Views
    1,301

    i also did this sry forgot to add this in the...

    i also did this sry forgot to add this in the previous post


    newPage = malloc(sizeof(Page)))
  2. Thread: Binaries

    by egoveneror2
    Replies
    2
    Views
    1,301

    Binaries

    lets say that i have a struct



    typedef struct record{
    unsigned char *name;
    unsigned int race;
    unsigned int classs;
    unsigned int level;
    unsigned char *guild;
  3. Replies
    16
    Views
    3,661

    cool my mistake again i malloced a ptr instead of...

    cool my mistake again i malloced a ptr instead of a record size.... >_<

    thanx again salem
  4. Replies
    16
    Views
    3,661

    ok... haha.... i'm quite bad in C as you can...

    ok...

    haha.... i'm quite bad in C as you can see...

    hmmm... i'll try to look for my mess then...
  5. Replies
    16
    Views
    3,661

    another question same codes.... typedef...

    another question same codes....



    typedef struct record{
    char *name;
    unsigned int race;
    unsigned int classs;
    unsigned int level;
    char *guild;
  6. Replies
    16
    Views
    3,661

    wow... thanx salem... fixed it... it was the...

    wow... thanx salem... fixed it...
    it was the memory allocation i did badly >_<
  7. Replies
    16
    Views
    3,661

    k = 1 would be the token that has an empty guild...

    k = 1 would be the token that has an empty guild
    however it doesnt seg fault with the code currently like that

    when i do a strcpy it seg faults at k = 1 cause of the NULL the strtok returns to...
  8. Replies
    16
    Views
    3,661

    o the "test" part is hard coded atm... cause of...

    o the "test" part is hard coded atm... cause of testing purposes
  9. Replies
    16
    Views
    3,661

    hmmm ok given i've changed those as you said ...

    hmmm ok given i've changed those as you said


    blank = malloc (sizeof(char)*30);
    strcpy(blank," ");




    chartemp = strtok(lines,"\n");
  10. Replies
    16
    Views
    3,661

    unknown seg fault reason.

    hi, i'm new to this forums howevery i hope someone can help me out here...

    i'm writing a program for an assignment actually, however i'm unable to debug this segmentation fault...

    excuse the...
Results 1 to 10 of 10