#ifdef _WIN32
my_bool CloseFileHandle(HANDLE h)
{ return !CloseHandle(h);
} /* end of CloseFileHandle */
#else/* UNIX */ /* code to handle Linux and Solaris */ #include <unistd.h> #include <sys/stat.h> #include <ctype.h> #include <fcntl.h> #include <pwd.h>
extern FILE *debug;
/***********************************************************************/ /* Define some functions not existing in the UNIX library. */ /***********************************************************************/
PSZ strupr(PSZ p)
{ registerint i;
for (i = 0; p[i]; i++)
p[i] = toupper(p[i]);
return (p);
} /* end of strupr */
PSZ strlwr(PSZ p)
{ registerint i;
for (i = 0; p[i]; i++)
p[i] = tolower(p[i]);
return (p);
} /* end of strlwr */
/***********************************************************************/ /* Define the splitpath function not existing in the UNIX library. */ /***********************************************************************/ void _splitpath(LPCSTR name, LPSTR drive, LPSTR dir, LPSTR fn, LPSTR ft)
{
LPCSTR p2, p = name;
/***********************************************************************/ /* Define the makepath function not existing in the UNIX library. */ /***********************************************************************/ void _makepath(LPSTR name, LPCSTR drive __attribute__((unused)), LPCSTR dir, LPCSTR fn, LPCSTR ft)
{ int n;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.