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...
Type: Posts; User: AlienJedi
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...
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...
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...