Search:

Type: Posts; User: AlienJedi

Search: Search took 0.00 seconds.

  1. Replies
    10
    Views
    8,455

    I think I'll allocate memory using malloc and use...

    I think I'll allocate memory using malloc and use strcpy to put the string into place.

    The main thing I wanted to see with that section of code was if my functions worked. My aim is to have me...
  2. Replies
    10
    Views
    8,455

    If I take out the perror function, the output...

    If I take out the perror function, the output changes to show that, when I try to print the string stored in memory after I free that memory, it is able to, instead of giving me an error.

    Am I...
  3. Replies
    10
    Views
    8,455

    free() doesn't seem to work...

    I'm working on a program that maintains a log file, and one of my tasks is to manage a linked list that stores the strings that I want to log. There is a function called clearlog that is meant to...
Results 1 to 3 of 3