Chcete-li kompilovat program huf.c pomoc jinho kompiltoru ne od firmy Borland:

a) vlote do souboru nsledujc definice

#define MAXPATH   260
#define MAXDIR    256
#define MAXFILE   256
#define MAXEXT    256
#define MAXDRIVE    3

b) vymate dek:

#include <dir.h>

c) nahrate funkci:

fnsplit(infile_name, drive, dir, filename, ext);    /* get filename               */
    
libovolnou dekdovac funkc z parametru infile_name:
drive - slo disku
dir - cesta
filename - nzev souboru
ext - ppona

Popis od firmy Borland:

fnsplit takes a file's full path name (path) as 
a string in the form   X:\DIR\SUBDIR\NAME.EXT and 
splits path into its four components. It then 
stores those components in the strings pointed to 
by drive, dir, name,  and ext. All five components 
must be passed but any of them can be a null which 
means the corresponding component will be parsed but 
not stored. If any path component is null, that 
component corresponds to a non-NULL, empty string.

The maximum sizes for these strings are given by 
the constants MAXDRIVE, MAXDIR, MAXPATH, MAXFILE, 
and MAXEXT (defined in dir.h) and each size includes 
space for the null-terminator.