Click here to Skip to main content
16,016,489 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
someone can explain me this


C++
 char g_szFtpDllFileName[1024];
while (g_szFtpDllFileName && g_szFtpDllFileName[strlen(g_szFtpDllFileName)-1] != '\\')
                    g_szFtpDllFileName[strlen(g_szFtpDllFileName)-2] = NULL

;
Posted
Updated 7-Nov-10 9:16am
v2
Comments
Henry Minute 7-Nov-10 15:20pm    
'please help' is not a suitable subject for a question. Use something that at least gives a clue to the question.

Possibly a ugly way to do a mistake?
 
Share this answer
 
Hi,
It's probably intended to shorten g_szFtpDllFileName to its last backslash character.
It will crash if there is no backslash to stop the loop.
Go away from such code :)
cheers,
AR
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900