void TestLong()
{
char nfil[150];
DIR *fileBuf, *tempFileBuf;
char name[100];
unsigned char name1[256];
NWCCODE ccode;
strcpy(nfil,"DATA:TEST/*.*");
SetTargetNameSpace(0);
fileBuf = tempFileBuf = opendir(nfil);
if (fileBuf)
{
while (tempFileBuf)
{
tempFileBuf = readdir(tempFileBuf);
if(!tempFileBuf) break;
strcpy(name,tempFileBuf->d_name);
strcpy(nfil1,"DATA:TEST/");
strcat(nfil1,name);
ccode=NWGetNameSpaceEntryName(tempFileBuf->d_name, 4, 256, name1);
ConsolePrintf("\rName:(%s) (%s) (%x)\n",nfil1, name1, ccode);
}
closedir(fileBuf);
}
}
--
Jacek