Search Results

Showing results 1 to 3 of 3
Search took 0.00 seconds.
Search: Posts Made By: Hamrick ; Forum: C and child forums
Forum: C Aug 29th, 2007
Replies: 17
Solved: Stupid Question
Views: 2,271
Posted By Hamrick
system is in stdlib.h, not stdio.h. It's not a good idea either because now you depend on an outside program that might be malicious. It's a big security no-no because you created a hole that hackers...
Forum: C Aug 21st, 2007
Replies: 11
Views: 1,783
Posted By Hamrick
No, it doesn't. But you _do_ lose the only reference to the space you had, and that's called a memory leak because now it's allocated and won't be freed until the program ends. If your OS doesn't...
Forum: C Aug 2nd, 2007
Replies: 8
Views: 18,153
Posted By Hamrick
You need to include stdlib.h. The error cryptically tells you that malloc wasn't declared and the compiler just assumes it's a function that returns int and casting from int to char* isn't friendly.
Showing results 1 to 3 of 3

 


About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC