中级会员
 
- 积分
- 340
- 金钱
- 340
- 注册时间
- 2013-4-22
- 在线时间
- 36 小时
|
while(i<250)
{
i++;
if(*fname=='\0')break;//偏移到了最后了.
fname++;
}
这是exfun.c的内容,我不明白这个地方的i为什么是小于250的
#define _MAX_LFN 255 /* Maximum LFN length to handle (12 to 255) */
/* The _USE_LFN option switches the LFN support.
/
/ 0: Disable LFN feature. _MAX_LFN and _LFN_UNICODE have no effect.
/ 1: Enable LFN with static working buffer on the BSS. Always NOT reentrant.
/ 2: Enable LFN with dynamic working buffer on the STACK.
/ 3: Enable LFN with dynamic working buffer on the HEAP.
/
/ The LFN working buffer occupies (_MAX_LFN + 1) * 2 bytes. To enable LFN,
/ Unicode handling functions ff_convert() and ff_wtoupper() must be added
/ to the project. When enable to use heap, memory control functions
/ ff_memalloc() and ff_memfree() must be added to the project. */
正常不应该是小于255吗,请原子哥解释一下哈,知道你很忙,呵呵,还有红色的哪句话跟我这个问题有关系吧??,麻烦原子哥也帮忙说一下。 |
|