View Single Post
  #4 (permalink)  
Old 10-17-2006, 05:56 AM
orbital_fox's Avatar   
orbital_fox orbital_fox is offline
Newbie
 
Join Date: Sep 2006
Posts: 26
Credits: 0
Rep Power: 9
orbital_fox is on a distinguished road
Default

Dude, u need to use malloc.. Alocate memory, based on the name size, and then store the data there..

But remember, C/C++, will automatically create an array, with all the arguments, if i recall its argv[] .. You could just use that instead, of making your own copy

But malloc is what you need to make dynamic memory management systems..
__________________
Artificial Intelligence and Robotics egnineer
http://fox.zsuatt.com/
Reply With Quote