Search:

Type: Posts; User: Rpog

Search: Search took 0.01 seconds.

  1. Segfault when trying to free a double linked list

    hi there!
    i'm working on a project where i want to insert the elements of a double linked list in a database to which i have the interaction commands...
    in the execution of this code


    void...
  2. Replies
    3
    Views
    3,648

    i switched from vchar=(char)malloc((sizeof...

    i switched from


    vchar=(char)malloc((sizeof (char))*100);


    to
  3. Replies
    3
    Views
    3,648

    segmentation fault in for loop

    please could someone detect some kind of error in the code, because it never enters the loop for, because it doesnt printf, since i cant find the error, i was hoping someone could help me.


    ...
  4. Replies
    12
    Views
    1,301

    segmentation fault usually occurs when a certain...

    segmentation fault usually occurs when a certain file doesnt exist, or when you try to copy into a string, too many chars/ints for it. So there is gotta be some error in your strings, also, you have...
  5. Replies
    4
    Views
    2,638

    please give me a small example of how i can read...

    please give me a small example of how i can read lines into memory, and then read from memory, i am not sure i understand much about memory.
    Sorry for being this noob.
  6. Replies
    4
    Views
    2,638

    Trouble replacing line of file

    hi again, i am having some dificulties replacing a certain line of a file.My problem in specific is writing to the file, a certain string, overwriting the line i want. However, my program just writes...
  7. Replies
    2
    Views
    1,643

    *blushes*, i really am a noob at this, thanks for...

    *blushes*, i really am a noob at this, thanks for pointing that out.
  8. Replies
    2
    Views
    1,643

    unexpected ( unwanted ) output in a file

    hi, again. I have another problem, this time while writing in a file the lines of another program.

    a certain file .h , which will be told to open by a file .c ( first argument ),
    and, from that...
  9. Replies
    7
    Views
    7,279

    thanks again :)

    thanks again :)
  10. Replies
    7
    Views
    7,279

    This has nothing to do with my previous work, but...

    This has nothing to do with my previous work, but its from a friend of mine, which has the same doubt as i do.
    When i compile the following code, it returns the following errors, in Solaris OS for...
  11. Replies
    7
    Views
    7,279

    :) :)

    thanks a lot, i should have done something wrong, i copied and pasted your code, and it worked.
    Thanks again.
    :)

    P.S : by the way, the OS was Solaris, and the compiler was gcc.
  12. Replies
    7
    Views
    7,279

    thx for your help, i already converted the loop...

    thx for your help, i already converted the loop for, and it corrected one error, however, i didnt quite catch the 3 double quotation part.
    It still goes into segmentation fault.
  13. Replies
    7
    Views
    7,279

    strstr() segmentation fault help

    Hi, im new here, as well as a C programming language noob.
    Also, i have a school assignment, which i dont expect it to be solved, nor a complete code, but i will need your help in understanding...
Results 1 to 13 of 13