有人可以解释一下这段代码吗 [英] Can someone please explain this code
本文介绍了有人可以解释一下这段代码吗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有人可以向我解释这个
someone can explain me this
char g_szFtpDllFileName[1024];
while (g_szFtpDllFileName && g_szFtpDllFileName[strlen(g_szFtpDllFileName)-1] != '\\')
g_szFtpDllFileName[strlen(g_szFtpDllFileName)-2] = NULL
;
推荐答案
可能是犯错误的丑陋方法?
Possibly a ugly way to do a mistake?
它可能旨在将g_szFtpDllFileName
缩短到其最后一个反斜杠字符.
如果没有反斜杠可以停止循环,则会崩溃.
远离这样的代码:)
欢呼声,
AR
Hi,
It''s probably intended to shorteng_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
这篇关于有人可以解释一下这段代码吗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文