zcc +cpm -DAMALLOC -O3 %1 -m --opt-code-speed=inlineints pfile.c sfile.c stfile.c unit1.c -o1.com
Output:
unit1.c:20:12: error: Out of context
Code: Select all
void changeext(char *APath, char *AExt)
{
int i1;
//go the end and search in reverse for ., :, /, or \\
for (i1=strlen(APath)-1; i1!=-1; i1--)
if (APath[i1]=='.' || APath[i1]==':' || APath[i1]=='/' || APath[i1]=='\\')
break;
//remove old extension if found
if (i1!=-1 && APath[i1]=='.')
APath[i1]=0;
//add new extension
strcat(APath, AExt);
}