Search Results

Search: Posts Made By: sam2012
Forum: Programming 08-14-2012
1,697
Posted By sam2012
No memory is allocated to a1, you can use a...
No memory is allocated to a1, you can use a malloc to allocate memory or use an array as mentioned in above post.

A better way of using malloc would be a1 = malloc(strlen(a2)+1);
Showing results 1 to 1 of 1

 
All times are GMT -4. The time now is 01:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy