Search Results

Search: Posts Made By: sainath.rapaka
Forum: Programming 11-27-2008
4,578
Posted By sainath.rapaka
The line strcpy(str,file_name+1); has problem ...
The line strcpy(str,file_name+1); has problem

file_name+1 will make the pointer to move forward one char..

change it to strcpy(str,file_name);
Forum: Programming 02-08-2008
7,374
Posted By sainath.rapaka
hey buddy the problem in above code is fgets...
hey buddy

the problem in above code is fgets reads till EOF or new line.
after reading each line it is exiting and reading the next line ...

see below code which does what u wanted. actually i...
Showing results 1 to 2 of 2

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